import with Qr in onboarding
This commit is contained in:
parent
fd8f76bab0
commit
7835694fb2
5 changed files with 15 additions and 5 deletions
|
|
@ -36,7 +36,6 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
|
||||
$scope.processWalletInfo = function(code) {
|
||||
if (!code) return;
|
||||
|
||||
$scope.importErr = false;
|
||||
var parsedCode = code.split('|');
|
||||
|
||||
|
|
@ -407,5 +406,6 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
};
|
||||
|
||||
updateSeedSourceSelect();
|
||||
$scope.setSeedSource('new');
|
||||
$scope.setSeedSource();
|
||||
if ($stateParams.code) $scope.processWalletInfo($stateParams.code);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -2,6 +2,12 @@
|
|||
|
||||
angular.module('copayApp.controllers').controller('welcomeController', function($scope, $state, $timeout, $log, $ionicPopup, profileService) {
|
||||
|
||||
$scope.goImport = function(code) {
|
||||
$state.go('tabs.import', {
|
||||
code: code
|
||||
});
|
||||
};
|
||||
|
||||
$scope.createProfile = function() {
|
||||
$log.debug('Creating profile');
|
||||
profileService.createProfile(function(err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue