do not show the menu in disclaimer view

This commit is contained in:
Javier 2016-07-04 10:42:36 -03:00
commit 260c5d9b67
3 changed files with 15 additions and 3 deletions

View file

@ -61,6 +61,12 @@ angular.module('copayApp.controllers').controller('indexController', function($r
});
}
$timeout(function() {
profileService.isDisclaimerAccepted(function(val) {
$scope.isDisclaimerAccepted = val;
});
}, 1);
function strip(number) {
return (parseFloat(number.toPrecision(12)));
};
@ -1410,6 +1416,12 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.tab = 'walletHome';
});
$rootScope.$on('disclaimerAccepted', function(event) {
profileService.isDisclaimerAccepted(function(val) {
$scope.isDisclaimerAccepted = val;
});
});
$rootScope.$on('Local/ValidatingWalletEnded', function(ev, walletId, isOK) {
if (self.isInFocus(walletId)) {