fix back routes on backup view when resume

This commit is contained in:
Gabriel Bazán 2016-09-14 14:12:34 -03:00
commit c3e471a525
3 changed files with 20 additions and 8 deletions

View file

@ -212,4 +212,14 @@ 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 $state.go('tabs.preferences.main', {
walletId: $stateParams.walletId
});
};
});