From 9bb1ad0f6f072c820b237971d1e47a95f72f7368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Tue, 14 Jun 2016 12:07:54 -0300 Subject: [PATCH] fix untranslated titles --- public/views/export.html | 2 +- public/views/preferences.html | 2 +- public/views/preferencesAlias.html | 2 +- public/views/preferencesHistory.html | 12 ++++++------ public/views/termOfUse.html | 2 +- src/js/controllers/index.js | 4 ++++ 6 files changed, 14 insertions(+), 10 deletions(-) diff --git a/public/views/export.html b/public/views/export.html index 79cbafdca..7e8a818ab 100644 --- a/public/views/export.html +++ b/public/views/export.html @@ -1,7 +1,7 @@
+ ng-init="titleSection='Export Wallet'; goBackToState = 'preferencesAdvanced'">
diff --git a/public/views/preferences.html b/public/views/preferences.html index d7d8bde31..d1eff3ea9 100644 --- a/public/views/preferences.html +++ b/public/views/preferences.html @@ -2,7 +2,7 @@
+ ng-init="titleSection=index.setWalletPreferencesTitle(); closeToHome = true">
diff --git a/public/views/preferencesAlias.html b/public/views/preferencesAlias.html index 8b526fe6a..150fa4d10 100644 --- a/public/views/preferencesAlias.html +++ b/public/views/preferencesAlias.html @@ -1,7 +1,7 @@
+ ng-init="titleSection='Alias'; goBackToState = 'preferences'">
diff --git a/public/views/preferencesHistory.html b/public/views/preferencesHistory.html index de8142b7e..562362f7e 100644 --- a/public/views/preferencesHistory.html +++ b/public/views/preferencesHistory.html @@ -1,25 +1,25 @@
+ ng-init="titleSection='Transaction History'; goBackToState = 'preferencesAdvanced'">

  • - Export to file - Export to file [preparing...] - +
  • Clear cache diff --git a/public/views/termOfUse.html b/public/views/termOfUse.html index 9d91bc3c7..e3890f2ea 100644 --- a/public/views/termOfUse.html +++ b/public/views/termOfUse.html @@ -1,7 +1,7 @@
    + ng-init="titleSection='Terms of Use'; goBackToState = 'about'; noColor = true">

    diff --git a/src/js/controllers/index.js b/src/js/controllers/index.js index cce4b547f..5c0e6161a 100644 --- a/src/js/controllers/index.js +++ b/src/js/controllers/index.js @@ -80,6 +80,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r storageService.setHideBalanceFlag(self.walletId, self.shouldHideBalance, function() {}); } + self.setWalletPreferencesTitle = function() { + return gettext("Wallet Preferences"); + } + self.cleanInstance = function() { $log.debug('Cleaning Index Instance'); lodash.each(self, function(v, k) {