Fixes: tests. Added karma and mocha tests.
This commit is contained in:
parent
801e746d11
commit
8ad1fa7b02
7 changed files with 40 additions and 9 deletions
|
|
@ -75,14 +75,16 @@ angular.module('copayApp.controllers').controller('SidebarController',
|
|||
}
|
||||
|
||||
$scope.checkIfWarning = function() {
|
||||
if (!$rootScope.wallet.isLocked) {
|
||||
if ($rootScope.wallet && !$rootScope.wallet.isLocked) {
|
||||
controllerUtils.redirIfLogged();
|
||||
}
|
||||
};
|
||||
|
||||
$scope.ignoreLocked = function() {
|
||||
$rootScope.wallet.isLocked = false;
|
||||
controllerUtils.redirIfLogged();
|
||||
if ($rootScope.wallet) {
|
||||
$rootScope.wallet.isLocked = false;
|
||||
controllerUtils.redirIfLogged();
|
||||
}
|
||||
};
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue