From 7b57011fd2a551511dff2e88ddaa75ad17fed5db Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Tue, 16 Feb 2016 14:13:50 -0500 Subject: [PATCH] Enables copy-to-clipboard more strings --- public/views/includes/confirm-tx.html | 2 +- public/views/includes/output.html | 10 +++++----- public/views/modals/tx-details.html | 21 ++++++++------------- public/views/modals/txp-details.html | 2 +- public/views/walletHome.html | 2 +- src/js/controllers/walletHome.js | 10 +++++----- 6 files changed, 21 insertions(+), 26 deletions(-) diff --git a/public/views/includes/confirm-tx.html b/public/views/includes/confirm-tx.html index 98b507b19..3cadb0ca0 100644 --- a/public/views/includes/confirm-tx.html +++ b/public/views/includes/confirm-tx.html @@ -9,7 +9,7 @@
{{tx.amountStr}}
{{tx.alternativeAmountStr}}
-
+
diff --git a/public/views/includes/output.html b/public/views/includes/output.html index e22e4b8c2..82b886a29 100644 --- a/public/views/includes/output.html +++ b/public/views/includes/output.html @@ -1,14 +1,14 @@ -
  • +
  • To: {{output.toAddress || output.address}}
  • -
  • +
  • Amount: - {{output.amountStr}} + {{output.amountStr}} {{output.alternativeAmountStr}}
  • -
  • +
  • Note: - {{output.message}} + {{output.message}}
  • diff --git a/public/views/modals/tx-details.html b/public/views/modals/tx-details.html index e54ce322e..235835e67 100644 --- a/public/views/modals/tx-details.html +++ b/public/views/modals/tx-details.html @@ -51,7 +51,7 @@
      -
    • +
    • To @@ -78,11 +78,6 @@ ng-repeat="output in btx.outputs" ng-include="'views/includes/output.html'">
    - -
  • - Note - {{btx.message}} -
  • @@ -90,22 +85,22 @@
  • Date - +
  • -
  • +
  • Fee - {{btx.feeStr}} + {{btx.feeStr}}
  • -
  • +
  • Note - {{btx.message}} + {{btx.message}}
  • -
  • +
  • Merchant message - + {{btx.merchant.pr.pd.memo}}
  • diff --git a/public/views/modals/txp-details.html b/public/views/modals/txp-details.html index 013ebd88e..2b8160b00 100644 --- a/public/views/modals/txp-details.html +++ b/public/views/modals/txp-details.html @@ -21,7 +21,7 @@
    {{tx.alternativeAmountStr}}
    + ng-click="copyToClipboard(tx.toAddress)"> diff --git a/public/views/walletHome.html b/public/views/walletHome.html index c75a3e09e..0b608ba5b 100644 --- a/public/views/walletHome.html +++ b/public/views/walletHome.html @@ -302,7 +302,7 @@

    My Bitcoin address

    -
    +
    diff --git a/src/js/controllers/walletHome.js b/src/js/controllers/walletHome.js index dcc9373f6..7eff987b6 100644 --- a/src/js/controllers/walletHome.js +++ b/src/js/controllers/walletHome.js @@ -427,9 +427,9 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi }, 100); }; - $scope.copyAddress = function(addr) { + $scope.copyToClipboard = function(addr) { if (!addr) return; - self.copyAddress(addr); + self.copyToClipboard(addr); }; $scope.cancel = lodash.debounce(function() { @@ -497,7 +497,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi }); }; - this.copyAddress = function(addr) { + this.copyToClipboard = function(addr) { if (isCordova) { window.cordova.plugins.clipboard.copy(addr); window.plugins.toast.showShortCenter(gettextCatalog.getString('Copied to clipboard')); @@ -1193,9 +1193,9 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi return n.substring(0, 4); }; - $scope.copyAddress = function(addr) { + $scope.copyToClipboard = function(addr) { if (!addr) return; - self.copyAddress(addr); + self.copyToClipboard(addr); }; $scope.cancel = lodash.debounce(function() {