2015-05-14 17:21:45 -03:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
angular.module('copayApp.controllers').controller('preferencesEmailController',
|
2015-05-19 14:10:47 -03:00
|
|
|
function($scope, go, profileService, gettext, $log) {
|
2015-05-14 17:21:45 -03:00
|
|
|
this.save = function(form) {
|
2015-05-19 15:30:49 -03:00
|
|
|
var self = this;
|
2015-05-19 14:10:47 -03:00
|
|
|
this.error = null;
|
2015-05-14 17:21:45 -03:00
|
|
|
|
|
|
|
|
var fc = profileService.focusedClient;
|
2015-05-19 14:10:47 -03:00
|
|
|
this.saving = true;
|
2016-06-06 12:21:15 -03:00
|
|
|
$scope.$emit('Local/EmailSettingUpdated', fc,self.email, function() {
|
2015-05-19 15:30:49 -03:00
|
|
|
self.saving = false;
|
2015-06-29 21:46:34 -03:00
|
|
|
go.path('preferences');
|
2015-05-14 17:21:45 -03:00
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
});
|