mirror of https://github.com/BTCPrivate/copay.git
fix show/hide menu icon
This commit is contained in:
parent
260c5d9b67
commit
17383e5e31
|
@ -1,7 +1,7 @@
|
|||
<nav ng-controller="topbarController as topbar"
|
||||
class="tab-bar" ng-style="{'background-color': noColor ? '#4B6178' : index.backgroundColor}">
|
||||
<section class="left-small">
|
||||
<a id="hamburger" class="p10" ng-show="!goBackToState && !closeToHome && !index.noFocusedWallet && index.physicalScreenWidth < 768"
|
||||
<a id="hamburger" class="p10" ng-show="!goBackToState && !closeToHome && !index.noFocusedWallet && physicalScreenWidth"
|
||||
on-tap="index.toggleLeftMenu()"><i class="fi-list size-24"></i>
|
||||
</a>
|
||||
<a ng-show="goBackToState" ng-click="$root.go(goBackToState); goBackToState = null"><i class="icon-arrow-left3 icon-back"></i>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue