add news and updates checkbox in onboarding

This commit is contained in:
Gabriel Bazán 2016-09-16 14:40:55 -03:00
commit a8f6b3c27d
4 changed files with 56 additions and 11 deletions

View file

@ -9,13 +9,14 @@ angular.module('copayApp.controllers').controller('collectEmailController', func
var wallet = profileService.getWallet($stateParams.walletId);
var walletId = wallet.credentials.walletId;
$scope.data = {};
$scope.data.accept = false;
$scope.save = function() {
var opts = {
emailFor: {}
};
opts.emailFor[walletId] = $scope.email;
walletService.updateRemotePreferences(wallet, {
email: $scope.email,
}, function(err) {