mirror of https://github.com/BTCPrivate/copay.git
fix bugs in phone
This commit is contained in:
parent
999c3e7d5d
commit
93e9fa7d3b
|
@ -18,7 +18,7 @@
|
|||
ng-controller="indexController as index"
|
||||
ng-swipe-disable-mouse
|
||||
ng-swipe-left="index.closeMenu()"
|
||||
ng-swipe-right="index.openMenu()">
|
||||
ng-swipe-right="index.agreeDisclaimer ? index.openMenu()">
|
||||
|
||||
<div class="off-canvas-wrap" id="off-canvas-wrap">
|
||||
<div class="inner-wrap">
|
||||
|
|
|
@ -135,6 +135,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
self.openWallet();
|
||||
});
|
||||
}
|
||||
storageService.getCopayDisclaimerFlag(function(err, val) {
|
||||
self.agreeDisclaimer = val;
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -457,7 +457,8 @@ angular
|
|||
url: '/cordova/:status/:isHome',
|
||||
views: {
|
||||
'main': {
|
||||
controller: function($rootScope, $state, $stateParams, $timeout, go, isCordova) {
|
||||
controller: function($rootScope, $state, $stateParams, $timeout, go, isCordova, storageService) {
|
||||
|
||||
switch ($stateParams.status) {
|
||||
case 'resume':
|
||||
$rootScope.$emit('Local/Resume');
|
||||
|
@ -470,10 +471,14 @@ angular
|
|||
}
|
||||
break;
|
||||
};
|
||||
$timeout(function() {
|
||||
$rootScope.$emit('Local/SetTab', 'walletHome', true);
|
||||
}, 100);
|
||||
go.walletHome();
|
||||
storageService.getCopayDisclaimerFlag(function(err, val) {
|
||||
if (!val) navigator.app.exitApp();
|
||||
|
||||
$timeout(function() {
|
||||
$rootScope.$emit('Local/SetTab', 'walletHome', true);
|
||||
}, 100);
|
||||
go.walletHome();
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue