onboarding restore feature

This commit is contained in:
Gabriel Bazán 2016-08-30 11:33:32 -03:00
commit 7584d2b145
8 changed files with 30 additions and 13 deletions

View 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');
};
});

View file

@ -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 = [];

View 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
});
}
});

View file

@ -412,7 +412,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
})
.state('add.import', {
url: '/import',
url: '/import/:fromOnboarding',
abstract: true,
views: {
'add': {