add news and updates checkbox in onboarding
This commit is contained in:
parent
6b13d89b24
commit
a8f6b3c27d
4 changed files with 56 additions and 11 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue