Fix strings for translation
This commit is contained in:
parent
837f6fced1
commit
9b4e98753b
4 changed files with 10 additions and 16 deletions
|
|
@ -3,19 +3,15 @@
|
|||
angular.module('copayApp.controllers').controller('preferencesEmailController',
|
||||
function($scope, go, profileService, gettext, $log) {
|
||||
this.save = function(form) {
|
||||
var self = this;
|
||||
this.error = null;
|
||||
|
||||
if (!form.$valid && this.email) {
|
||||
this.error = gettext('Invalid email');
|
||||
return;
|
||||
}
|
||||
|
||||
var fc = profileService.focusedClient;
|
||||
this.saving = true;
|
||||
fc.savePreferences({
|
||||
email: this.email
|
||||
}, function(err) {
|
||||
fc.saving = false;
|
||||
self.saving = false;
|
||||
if (err) {
|
||||
$log.warn(err);
|
||||
$scope.$emit('Local/ClientError', err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue