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: { watch: {
haml: { haml: {
files: ['app/assets/templates/**/*.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: { options: {
spawn: false, spawn: false,
}, },

View File

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

View File

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

View File

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