Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Keep selected network on new account cancellation - Closes #280 #291

Merged
merged 7 commits into from
Jun 2, 2017
3 changes: 3 additions & 0 deletions src/components/login/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ app.component('login', {
this.passConfirmSubmit(args.passphrase);
}
});
this.$scope.$on('onSignupCancel', () => {
this.generatingNewPassphrase = false;
});
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/components/login/passphrase.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ app.directive('passphrase', ($rootScope, $document, Passphrase, $mdDialog, $mdMe

ok() {
ok();
this.close();
this.$mdDialog.hide();
}

close() {
this.$mdDialog.hide();
this.$state.reload();
this.$mdDialog.cancel();
$rootScope.$broadcast('onSignupCancel');
}
},

Expand Down