Fix strings for translation

This commit is contained in:
Gustavo Maximiliano Cortez 2015-05-19 15:30:49 -03:00
commit 9b4e98753b
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
4 changed files with 10 additions and 16 deletions

View file

@ -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);