fix show/hide menu icon

This commit is contained in:
Javier 2016-07-04 13:13:40 -03:00
commit 17383e5e31
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,6 @@ angular.module('copayApp.controllers').controller('indexController', function($r
ret.historyShowMoreLimit = 10;
ret.isSearching = false;
ret.prevState = 'walletHome';
ret.physicalScreenWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width);
ret.menu = [{
'title': gettext('Receive'),
@ -62,6 +61,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
}
$timeout(function() {
$scope.physicalScreenWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width) < 768;
profileService.isDisclaimerAccepted(function(val) {
$scope.isDisclaimerAccepted = val;
});
@ -1685,7 +1685,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
});
$rootScope.$on('Local/WindowResize', function() {
self.physicalScreenWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width);
$scope.physicalScreenWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width) < 768;
});
$rootScope.$on('Local/NeedsConfirmation', function(event, txp, cb) {