2016-08-30 11:33:32 -03:00
|
|
|
'use strict';
|
|
|
|
|
|
2016-08-30 15:38:48 -03:00
|
|
|
angular.module('copayApp.controllers').controller('welcomeController', function($scope, $state, $timeout, $log, $ionicPopup, profileService) {
|
2016-08-30 11:33:32 -03:00
|
|
|
|
2016-09-01 12:10:08 -03:00
|
|
|
$scope.goImport = function(code) {
|
2016-09-01 15:21:18 -03:00
|
|
|
$state.go('onboarding.import.phrase', {
|
2016-09-01 12:14:21 -03:00
|
|
|
fromOnboarding: true,
|
2016-09-01 12:10:08 -03:00
|
|
|
code: code
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
2016-08-30 15:38:48 -03:00
|
|
|
$scope.createProfile = function() {
|
|
|
|
|
$log.debug('Creating profile');
|
|
|
|
|
profileService.createProfile(function(err) {
|
|
|
|
|
if (err) $log.warn(err);
|
|
|
|
|
});
|
|
|
|
|
};
|
2016-08-30 11:33:32 -03:00
|
|
|
|
|
|
|
|
});
|