balance Service

This commit is contained in:
Matias Alejo Garcia 2014-11-29 18:35:48 -03:00
commit 57299d675e
31 changed files with 585 additions and 645 deletions

View file

@ -47,26 +47,32 @@ angular
})
.when('/homeWallet', {
templateUrl: 'views/homeWallet.html',
walletShouldBeReady: true,
logged: true
})
.when('/receive', {
templateUrl: 'views/receive.html',
walletShouldBeReady: true,
logged: true
})
.when('/history', {
templateUrl: 'views/history.html',
walletShouldBeReady: true,
logged: true
})
.when('/send', {
templateUrl: 'views/send.html',
walletShouldBeReady: true,
logged: true
})
.when('/more', {
templateUrl: 'views/more.html',
walletShouldBeReady: true,
logged: true
})
.when('/settings', {
templateUrl: 'views/settings.html',
walletShouldBeReady: true,
logged: false
})
.when('/warning', {
@ -119,6 +125,9 @@ angular
$idle.unwatch();
$location.path('/');
}
if ($rootScope.wallet && !$rootScope.wallet.isReady() && next.walletShouldBeReady) {
$location.path('/copayers');
}
}
});
})