Waiting copayer as a controller
This commit is contained in:
parent
69fbbd4888
commit
2787a72b7a
5 changed files with 37 additions and 15 deletions
|
|
@ -26,6 +26,10 @@ angular
|
|||
templateUrl: 'views/setup.html',
|
||||
validate: false
|
||||
})
|
||||
.when('/copayers', {
|
||||
templateUrl: 'views/copayers.html',
|
||||
validate: true
|
||||
})
|
||||
.when('/addresses', {
|
||||
templateUrl: 'views/addresses.html',
|
||||
validate: true
|
||||
|
|
@ -74,6 +78,9 @@ angular
|
|||
if ((!$rootScope.wallet || !$rootScope.wallet.id) && next.validate) {
|
||||
$location.path('/');
|
||||
}
|
||||
if ($rootScope.wallet && !$rootScope.wallet.isReady()) {
|
||||
$location.path('/copayers');
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue