Wallet/src/js/controllers/onboarding/welcomeController.js

25 lines
638 B
JavaScript
Raw Normal View History

2016-08-30 11:33:32 -03:00
'use strict';
2016-11-08 12:37:05 -03:00
angular.module('copayApp.controllers').controller('welcomeController', function($scope, $state, $timeout, $ionicConfig, $log, profileService, startupService, storageService) {
$ionicConfig.views.swipeBackEnabled(false);
2016-08-30 11:33:32 -03:00
$scope.$parent.$on("$ionicView.afterEnter", function() {
startupService.ready();
});
2016-09-01 12:10:08 -03:00
$scope.goImport = function(code) {
2016-09-06 16:40:57 -03:00
$state.go('onboarding.import', {
2016-09-01 12:14:21 -03:00
fromOnboarding: true,
2016-09-01 12:10:08 -03:00
code: code
});
};
$scope.createProfile = function() {
$log.debug('Creating profile');
profileService.createProfile(function(err) {
if (err) $log.warn(err);
});
};
2016-08-30 11:33:32 -03:00
});