Fix password manager continue lock

This commit is contained in:
Mo Bitar
2018-12-13 02:02:43 -06:00
parent 9200055616
commit 24bfe5db30
4 changed files with 16 additions and 12 deletions

View File

@@ -5,7 +5,7 @@ module.exports = function(grunt) {
watch: {
haml: {
files: ['app/assets/templates/**/*.haml'],
tasks: ['newer:haml', 'ngtemplates', 'concat:app', 'babel', 'browserify', 'concat:dist'],
tasks: ['newer:haml', 'ngtemplates', 'concat:app', 'babel', 'browserify', 'concat:dist', 'ngAnnotate'],
options: {
spawn: false,
},

View File

@@ -85,7 +85,7 @@ class ComponentView {
$timeout(() => {
$scope.loading = false;
$scope.issueLoading = false;
}, 5)
}, 7)
};
}
}

View File

@@ -102,6 +102,9 @@ class PasswordWizard {
if(preprocessor) {
preprocessor(() => {
next();
}, () => {
// on fail
$scope.isContinuing = false;
})
} else {
next();
@@ -114,7 +117,7 @@ class PasswordWizard {
$scope.preprocessorForStep = function(step) {
if(step == PasswordStep) {
return (callback) => {
return (onSuccess, onFail) => {
$scope.showSpinner = true;
$scope.continueTitle = "Generating Keys...";
$timeout(() => {
@@ -122,7 +125,9 @@ class PasswordWizard {
$scope.showSpinner = false;
$scope.continueTitle = DefaultContinueTitle;
if(success) {
callback();
onSuccess();
} else {
onFail && onFail();
}
});
})

View File

@@ -14,8 +14,7 @@
%p.sk-p
Changing your password involves changing your encryption key, which requires your data to be re-encrypted and synced.
If you have many items, syncing your data can take several minutes.
%p.sk-p
%strong You must keep the application window open during this process.
%p.sk-p.sk-panel-row You must keep the application window open during this process.
%div{"ng-if" => "securityUpdate"}
%p.sk-p
A new update is available for your account. Updates address improvements and enhancements to our security specification.
@@ -75,7 +74,7 @@
%div{"ng-if" => "step == 4"}
%p.sk-panel-row
Your data is being re-encrypted with your new keys and synced to your account.
%p.sk-panel-row.danger
%p.sk-panel-row.danger{"ng-if" => "lockContinue"}
Do not close this window until this process completes.
.sk-panel-row
@@ -89,14 +88,14 @@
%div{"ng-if" => "step == 5"}
%div{"ng-if" => "changePassword"}
%p.sk-panel-row Your password has been successfully changed.
%p.sk-p.sk-panel-row.info-i Your password has been successfully changed.
%div{"ng-if" => "securityUpdate"}
%p.sk-panel-row
%p.sk-p.sk-panel-row
The security update has been successfully applied to your account.
%p.sk-panel-row
%strong Please ensure you are running the latest version of Standard Notes on all platforms to ensure maximum compatibility.
%p.sk-p.sk-panel-row
Please ensure you are running the latest version of Standard Notes on all platforms to ensure maximum compatibility.
%p.sk-panel-row You may now sign back in on all your devices and close this window.
%p.sk-p.sk-panel-row You may now sign back in on all your devices and close this window.
.sk-panel-footer
.empty