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

@ -74,4 +74,15 @@ angular.module('copayApp.controllers').controller('SidebarController',
});
}
$scope.checkIfWarning = function() {
if (!$rootScope.wallet.isLocked) {
controllerUtils.redirIfLogged();
}
};
$scope.ignoreLocked = function() {
$rootScope.wallet.isLocked = false;
controllerUtils.redirIfLogged();
};
});