disclaimer is always accepted
This commit is contained in:
parent
508d358e86
commit
c722902eab
3 changed files with 3 additions and 16 deletions
|
|
@ -97,17 +97,7 @@ angular.module('copayApp.controllers').controller('backupController',
|
||||||
$scope.closeBackupResultModal = function() {
|
$scope.closeBackupResultModal = function() {
|
||||||
$scope.confirmBackupModal.hide();
|
$scope.confirmBackupModal.hide();
|
||||||
$scope.confirmBackupModal.remove();
|
$scope.confirmBackupModal.remove();
|
||||||
|
$state.go('tabs.home');
|
||||||
profileService.isDisclaimerAccepted(function(val) {
|
|
||||||
if (val) {
|
|
||||||
$ionicHistory.removeBackView();
|
|
||||||
$state.go('tabs.home');
|
|
||||||
} else $state.go('onboarding.disclaimer', {
|
|
||||||
bchWalletId: $stateParams.bchWalletId,
|
|
||||||
btcWalletId: $stateParams.btcWalletId,
|
|
||||||
backedUp: true
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.copyRecoveryPhrase = function() {
|
$scope.copyRecoveryPhrase = function() {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ Profile.create = function(opts) {
|
||||||
var x = new Profile();
|
var x = new Profile();
|
||||||
x.createdOn = Date.now();
|
x.createdOn = Date.now();
|
||||||
x.credentials = opts.credentials || [];
|
x.credentials = opts.credentials || [];
|
||||||
x.disclaimerAccepted = false;
|
x.disclaimerAccepted = true;
|
||||||
x.checked = {};
|
x.checked = {};
|
||||||
return x;
|
return x;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1230,12 +1230,9 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
//onboarding with no back views
|
//onboarding with no back views
|
||||||
var matchWelcome = $ionicHistory.currentStateName() == 'onboarding.welcome' ? true : false;
|
var matchWelcome = $ionicHistory.currentStateName() == 'onboarding.welcome' ? true : false;
|
||||||
var matchCollectEmail = $ionicHistory.currentStateName() == 'onboarding.collectEmail' ? true : false;
|
var matchCollectEmail = $ionicHistory.currentStateName() == 'onboarding.collectEmail' ? true : false;
|
||||||
var matchBackupRequest = $ionicHistory.currentStateName() == 'onboarding.backupRequest' ? true : false;
|
|
||||||
var backedUp = $ionicHistory.backView().stateName == 'onboarding.backup' ? true : false;
|
|
||||||
var noBackView = $ionicHistory.backView().stateName == 'starting' ? true : false;
|
var noBackView = $ionicHistory.backView().stateName == 'starting' ? true : false;
|
||||||
var matchDisclaimer = $ionicHistory.currentStateName() == 'onboarding.disclaimer' && (backedUp || noBackView) ? true : false;
|
|
||||||
|
|
||||||
var fromOnboarding = matchCollectEmail | matchBackupRequest | matchWelcome | matchDisclaimer;
|
var fromOnboarding = matchCollectEmail | matchWelcome ;
|
||||||
|
|
||||||
//views with disable backbutton
|
//views with disable backbutton
|
||||||
var matchComplete = $ionicHistory.currentStateName() == 'tabs.rate.complete' ? true : false;
|
var matchComplete = $ionicHistory.currentStateName() == 'tabs.rate.complete' ? true : false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue