|
|
@ -38,13 +38,13 @@ let onFirstMount = () => import('../lib/appManagers/appProfileManager').then(imp |
|
|
|
|
|
|
|
|
|
|
|
let sendAvatar = () => new Promise((resolve, reject) => { |
|
|
|
let sendAvatar = () => new Promise((resolve, reject) => { |
|
|
|
if(!uploadAvatar) { |
|
|
|
if(!uploadAvatar) { |
|
|
|
console.log('User has not selected avatar'); |
|
|
|
//console.log('User has not selected avatar');
|
|
|
|
return resolve(); |
|
|
|
return resolve(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
console.log('invoking uploadFile...'); |
|
|
|
//console.log('invoking uploadFile...');
|
|
|
|
uploadAvatar().then((inputFile: any) => { |
|
|
|
uploadAvatar().then((inputFile: any) => { |
|
|
|
console.log('uploaded smthn', inputFile); |
|
|
|
//console.log('uploaded smthn', inputFile);
|
|
|
|
|
|
|
|
|
|
|
|
appProfileManager.uploadProfilePhoto(inputFile).then(resolve, reject); |
|
|
|
appProfileManager.uploadProfilePhoto(inputFile).then(resolve, reject); |
|
|
|
}, reject); |
|
|
|
}, reject); |
|
|
@ -75,14 +75,14 @@ let onFirstMount = () => import('../lib/appManagers/appProfileManager').then(imp |
|
|
|
'last_name': lastName |
|
|
|
'last_name': lastName |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
console.log('invoking auth.signUp with params:', params); |
|
|
|
//console.log('invoking auth.signUp with params:', params);
|
|
|
|
|
|
|
|
|
|
|
|
this.textContent = 'PLEASE WAIT...'; |
|
|
|
this.textContent = 'PLEASE WAIT...'; |
|
|
|
putPreloader(this); |
|
|
|
putPreloader(this); |
|
|
|
|
|
|
|
|
|
|
|
apiManager.invokeApi('auth.signUp', params) |
|
|
|
apiManager.invokeApi('auth.signUp', params) |
|
|
|
.then((response: any) => { |
|
|
|
.then((response: any) => { |
|
|
|
console.log('auth.signUp response:', response); |
|
|
|
//console.log('auth.signUp response:', response);
|
|
|
|
|
|
|
|
|
|
|
|
switch(response._) { |
|
|
|
switch(response._) { |
|
|
|
case 'auth.authorization': // success
|
|
|
|
case 'auth.authorization': // success
|
|
|
|