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

@@ -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();
}
});
})