onboarding

This commit is contained in:
Gabriel Bazán 2016-08-25 16:31:47 -03:00
commit aacfe0a326
47 changed files with 699 additions and 332 deletions

View file

@ -0,0 +1,17 @@
'use strict';
angular.module('copayApp.controllers').controller('collectEmailController', function($rootScope, $scope, $state, $stateParams, $timeout, $ionicModal, profileService, walletService) {
$scope.save = function(form) {
var wallet = profileService.getWallet($stateParams.walletId);
var email = $scope.email || '';
walletService.updateRemotePreferences(wallet, {
email: email,
}, function(err) {
if (err) $log.warn(err);
$state.go('onboarding.notifications');
});
};
});