Wallet/src/js/controllers/preferencesEmail.js
2015-06-29 21:46:34 -03:00

16 lines
461 B
JavaScript

'use strict';
angular.module('copayApp.controllers').controller('preferencesEmailController',
function($scope, go, profileService, gettext, $log) {
this.save = function(form) {
var self = this;
this.error = null;
var fc = profileService.focusedClient;
this.saving = true;
$scope.$emit('Local/EmailSettingUpdated', self.email, function() {
self.saving = false;
go.path('preferences');
});
};
});