Show a warning if trying to open same wallet in same browser. Fix redirect to receive.

This commit is contained in:
Gustavo Maximiliano Cortez 2014-08-07 18:57:19 -03:00
commit 801e746d11
8 changed files with 93 additions and 6 deletions

View file

@ -56,6 +56,10 @@ angular
.when('/uri-payment/:data', {
templateUrl: 'views/uri-payment.html'
})
.when('/warning', {
templateUrl: 'views/warning.html',
validate: true
})
.otherwise({
templateUrl: 'views/errors/404.html',
title: 'Error'
@ -86,6 +90,9 @@ angular
if ($rootScope.wallet && !$rootScope.wallet.isReady()) {
$location.path('/copayers');
}
if ($rootScope.wallet && $rootScope.wallet.isLocked) {
$location.path('/warning');
}
}
});
})