From 9b4e98753b8d64ffc39d9a1f13885fe6a363454f Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Tue, 19 May 2015 15:30:49 -0300 Subject: [PATCH] Fix strings for translation --- public/views/modals/confirmation.html | 4 ++-- public/views/preferencesAlias.html | 6 ++---- public/views/preferencesEmail.html | 8 ++++---- src/js/controllers/preferencesEmail.js | 8 ++------ 4 files changed, 10 insertions(+), 16 deletions(-) diff --git a/public/views/modals/confirmation.html b/public/views/modals/confirmation.html index a057c7a4e..1d56e2348 100644 --- a/public/views/modals/confirmation.html +++ b/public/views/modals/confirmation.html @@ -2,13 +2,13 @@

{{title|translate}}

-
-
diff --git a/public/views/preferencesAlias.html b/public/views/preferencesAlias.html index 6b7af95d0..ca1e90657 100644 --- a/public/views/preferencesAlias.html +++ b/public/views/preferencesAlias.html @@ -4,15 +4,13 @@ ng-init="titleSection='Wallet Alias'; goBackToState = 'preferences'">
- -
- +
-

Changing wallet alias only afects the local wallet name. +

Changing wallet alias only afects the local wallet name.

diff --git a/public/views/preferencesEmail.html b/public/views/preferencesEmail.html index 43280ba5e..55cac6990 100644 --- a/public/views/preferencesEmail.html +++ b/public/views/preferencesEmail.html @@ -17,7 +17,7 @@
- Saving preferences... + Saving preferences... @@ -29,11 +29,11 @@ - + - -

Setting up email notifications could weaken your privacy, if the wallet service provider is compromised. Information available to an attacker would include your wallet addresses and its balance, but no more. +

Setting up email notifications could weaken your privacy, if the wallet service provider is compromised. Information available to an attacker would include your wallet addresses and its balance, but no more.

diff --git a/src/js/controllers/preferencesEmail.js b/src/js/controllers/preferencesEmail.js index 783ba82ee..241297501 100644 --- a/src/js/controllers/preferencesEmail.js +++ b/src/js/controllers/preferencesEmail.js @@ -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);