add backup warning view to backup flow
This commit is contained in:
parent
82211a5812
commit
33c7e2b297
17 changed files with 123 additions and 72 deletions
|
|
@ -84,13 +84,15 @@ angular.module('copayApp.controllers').controller('backupController',
|
|||
|
||||
$scope.closeBackupResultModal = function() {
|
||||
$scope.confirmBackupModal.hide();
|
||||
$scope.confirmBackupModal.remove();
|
||||
|
||||
if ($stateParams.fromOnboarding) {
|
||||
$state.go('onboarding.disclaimer');
|
||||
} else {
|
||||
$ionicHistory.removeBackView();
|
||||
$state.go('tabs.home');
|
||||
}
|
||||
profileService.isDisclaimerAccepted(function(val) {
|
||||
if (val) {
|
||||
$ionicHistory.removeBackView();
|
||||
$state.go('tabs.home');
|
||||
}
|
||||
else $state.go('onboarding.disclaimer');
|
||||
});
|
||||
};
|
||||
|
||||
var confirm = function(cb) {
|
||||
|
|
@ -184,17 +186,6 @@ angular.module('copayApp.controllers').controller('backupController',
|
|||
$scope.selectComplete = false;
|
||||
};
|
||||
|
||||
$scope.backupGoBack = function() {
|
||||
if ($stateParams.fromOnboarding) $state.go('onboarding.backupWarning', {
|
||||
walletId: $stateParams.walletId,
|
||||
fromOnboarding: true
|
||||
});
|
||||
else if ($stateParams.fromReceive) $state.go('tabs.receive');
|
||||
else $state.go('tabs.preferences', {
|
||||
walletId: $stateParams.walletId
|
||||
});
|
||||
};
|
||||
|
||||
$scope.$on("$ionicView.enter", function(event, data) {
|
||||
$scope.deleted = isDeletedSeed();
|
||||
if ($scope.deleted) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue