Waiting copayer as a controller

This commit is contained in:
Gustavo Maximiliano Cortez 2014-07-24 15:31:07 -03:00
commit 2787a72b7a
5 changed files with 37 additions and 15 deletions

View file

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