fix bugs in phone
This commit is contained in:
parent
999c3e7d5d
commit
93e9fa7d3b
3 changed files with 14 additions and 6 deletions
|
|
@ -18,7 +18,7 @@
|
||||||
ng-controller="indexController as index"
|
ng-controller="indexController as index"
|
||||||
ng-swipe-disable-mouse
|
ng-swipe-disable-mouse
|
||||||
ng-swipe-left="index.closeMenu()"
|
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="off-canvas-wrap" id="off-canvas-wrap">
|
||||||
<div class="inner-wrap">
|
<div class="inner-wrap">
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
self.openWallet();
|
self.openWallet();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
storageService.getCopayDisclaimerFlag(function(err, val) {
|
||||||
|
self.agreeDisclaimer = val;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -457,7 +457,8 @@ angular
|
||||||
url: '/cordova/:status/:isHome',
|
url: '/cordova/:status/:isHome',
|
||||||
views: {
|
views: {
|
||||||
'main': {
|
'main': {
|
||||||
controller: function($rootScope, $state, $stateParams, $timeout, go, isCordova) {
|
controller: function($rootScope, $state, $stateParams, $timeout, go, isCordova, storageService) {
|
||||||
|
|
||||||
switch ($stateParams.status) {
|
switch ($stateParams.status) {
|
||||||
case 'resume':
|
case 'resume':
|
||||||
$rootScope.$emit('Local/Resume');
|
$rootScope.$emit('Local/Resume');
|
||||||
|
|
@ -470,10 +471,14 @@ angular
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
};
|
};
|
||||||
$timeout(function() {
|
storageService.getCopayDisclaimerFlag(function(err, val) {
|
||||||
$rootScope.$emit('Local/SetTab', 'walletHome', true);
|
if (!val) navigator.app.exitApp();
|
||||||
}, 100);
|
|
||||||
go.walletHome();
|
$timeout(function() {
|
||||||
|
$rootScope.$emit('Local/SetTab', 'walletHome', true);
|
||||||
|
}, 100);
|
||||||
|
go.walletHome();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue