onboarding restore feature
This commit is contained in:
parent
47856f03ff
commit
7584d2b145
8 changed files with 30 additions and 13 deletions
10
src/js/controllers/backController.js
Normal file
10
src/js/controllers/backController.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('backController', function($scope, $state, $stateParams) {
|
||||
|
||||
$scope.importGoBack = function() {
|
||||
if ($stateParams.fromOnboarding) $state.go('onboarding.welcome');
|
||||
else $state.go('add.main');
|
||||
};
|
||||
|
||||
});
|
||||
|
|
@ -15,10 +15,6 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
$scope.account = 1;
|
||||
$scope.importErr = false;
|
||||
|
||||
$scope.goBack = function() {
|
||||
$ionicHistory.goBack();
|
||||
};
|
||||
|
||||
var updateSeedSourceSelect = function() {
|
||||
$scope.seedOptions = [];
|
||||
|
||||
|
|
|
|||
11
src/js/controllers/onboarding/welcomeController.js
Normal file
11
src/js/controllers/onboarding/welcomeController.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('welcomeController', function($scope, $state, $ionicPopup, profileService) {
|
||||
|
||||
$scope.goImport = function() {
|
||||
$state.go('add.import.phrase', {
|
||||
fromOnboarding: true
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
|
@ -412,7 +412,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
|||
}
|
||||
})
|
||||
.state('add.import', {
|
||||
url: '/import',
|
||||
url: '/import/:fromOnboarding',
|
||||
abstract: true,
|
||||
views: {
|
||||
'add': {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue