adde ruturn to signin if we not select a wallet before
This commit is contained in:
parent
0a58aaf071
commit
018e248dd1
1 changed files with 5 additions and 1 deletions
|
|
@ -1,10 +1,14 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copay.password').controller('PasswordController',
|
angular.module('copay.password').controller('PasswordController',
|
||||||
function($scope, $rootScope, Passphrase, walletFactory, controllerUtils) {
|
function($scope, $rootScope, $location, Passphrase, walletFactory, controllerUtils) {
|
||||||
$scope.title = 'Password';
|
$scope.title = 'Password';
|
||||||
$scope.loading = false;
|
$scope.loading = false;
|
||||||
|
|
||||||
|
if (!$rootScope.openedWalletId) {
|
||||||
|
$location.path('signin');
|
||||||
|
}
|
||||||
|
|
||||||
$scope.getPassphrase = function() {
|
$scope.getPassphrase = function() {
|
||||||
$scope.loading = true;
|
$scope.loading = true;
|
||||||
var passphrase = Passphrase.getBase64($scope.password);
|
var passphrase = Passphrase.getBase64($scope.password);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue