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

@ -17,11 +17,14 @@ angular.module('copayApp.services')
root.redirIfLogged = function() {
var w = $rootScope.wallet;
if (w) {
$location.path('addresses');
$location.path('receive');
}
};
root.logout = function() {
if (!$rootScope.wallet.isLocked) {
$rootScope.wallet.closeIfOpen();
}
Socket.removeAllListeners();
$rootScope.wallet = null;