display a loading screen while users are changing their passwords

This commit is contained in:
ansuz
2018-07-18 15:53:12 +02:00
parent e110f20397
commit e2600e4b36
2 changed files with 7 additions and 0 deletions

View File

@@ -431,10 +431,16 @@ define([
UI.confirm(Messages.settings_changePasswordConfirm,
function (yes) {
if (!yes) { return; }
UI.addLoadingScreen({
hideTips: true,
loadingText: Messages.settings_changePasswordPending,
});
updateBlock({
password: oldPassword,
newPassword: newPassword
}, function (obj) {
UI.removeLoadingScreen();
if (obj && obj.error) {
// TODO
UI.alert(Messages.settings_changePasswordError);