save lang and unit in BWS

This commit is contained in:
Matias Alejo Garcia 2015-06-29 21:46:34 -03:00
commit c65b2d7c07
6 changed files with 140 additions and 74 deletions

View file

@ -8,20 +8,9 @@ angular.module('copayApp.controllers').controller('preferencesEmailController',
var fc = profileService.focusedClient;
this.saving = true;
fc.savePreferences({
email: this.email
}, function(err) {
$scope.$emit('Local/EmailSettingUpdated', self.email, function() {
self.saving = false;
if (err) {
$log.warn(err);
$scope.$emit('Local/ClientError', err);
return;
}
$scope.$emit('Local/EmailUpdated', function(err){
go.path('preferences');
});
go.path('preferences');
});
};
});