deleting agree disclaimer flag in storage and adding to the storage profile
This commit is contained in:
parent
42aaf515c7
commit
3f7485ca8d
7 changed files with 62 additions and 58 deletions
|
|
@ -471,7 +471,7 @@ angular
|
|||
if ($stateParams.status == "pause")
|
||||
return;
|
||||
|
||||
storageService.getCopayDisclaimerFlag(function(err, val) {
|
||||
storageService.getProfile(function(err, profile) {
|
||||
|
||||
$log.debug('### State: ', $stateParams.status);
|
||||
switch ($stateParams.status) {
|
||||
|
|
@ -479,7 +479,7 @@ angular
|
|||
$rootScope.$emit('Local/Resume');
|
||||
break;
|
||||
case 'backbutton':
|
||||
var shouldExit = $stateParams.isHome == 'true' || !val;
|
||||
var shouldExit = $stateParams.isHome == 'true' || !profile.agreeDisclaimer;
|
||||
if (isCordova && shouldExit && !$rootScope.modalOpened) {
|
||||
return navigator.app.exitApp();
|
||||
} else {
|
||||
|
|
@ -488,7 +488,7 @@ angular
|
|||
break;
|
||||
};
|
||||
|
||||
if (val) {
|
||||
if (profile.agreeDisclaimer) {
|
||||
go.walletHome(true);
|
||||
} else {
|
||||
$state.transitionTo('disclaimer');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue