From 1f975dc2831a9cfd6eca4cd8b777d4368c5fce03 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Thu, 10 Sep 2015 16:19:07 -0300 Subject: [PATCH] Adds filters to every fiat values --- public/views/buyGlidera.html | 12 ++++----- public/views/glidera.html | 2 +- public/views/modals/glidera-confirmation.html | 23 ++++++++-------- public/views/modals/glidera-tx-details.html | 26 ++++++++++--------- public/views/preferencesGlidera.html | 16 ++++++------ public/views/sellGlidera.html | 14 +++++----- src/js/controllers/buyGlidera.js | 1 + src/js/controllers/sellGlidera.js | 2 +- 8 files changed, 50 insertions(+), 46 deletions(-) diff --git a/public/views/buyGlidera.html b/public/views/buyGlidera.html index d81b7931b..ca3009015 100644 --- a/public/views/buyGlidera.html +++ b/public/views/buyGlidera.html @@ -27,12 +27,12 @@
Daily buy limit: - ${{index.glideraLimits.dailyBuy}} - (remaining ${{index.glideraLimits.dailyBuyRemaining}}) + {{index.glideraLimits.dailyBuy|currency:'':2}} {{index.glideraLimits.currency}} + (remaining {{index.glideraLimits.dailyBuyRemaining|currency:'':2}} {{index.glideraLimits.currency}})
Monthly buy limit: - ${{index.glideraLimits.monthlyBuy}} - (remaining ${{index.glideraLimits.monthlyBuyRemaining}}) + {{index.glideraLimits.monthlyBuy|currency:'':2}} {{index.glideraLimits.currency}} + (remaining {{index.glideraLimits.monthlyBuyRemaining|currency:'':2}} {{index.glideraLimits.currency}})
@@ -67,7 +67,7 @@
Buy - {{buy.buyPrice.currency}} {{buy.buyPrice.subtotal}} in Bitcoin + {{buy.buyPrice.subtotal|currency:'':2}} {{buy.buyPrice.currency}} in Bitcoin {{buy.buyPrice.qty}} BTC at {{buy.buyPrice.price}} {{buy.buyPrice.currency}}/BTC
@@ -88,7 +88,7 @@
- {{buy.buyPrice.currency}} {{buy.buyPrice.subtotal}} → {{buy.buyPrice.qty}} BTC + {{buy.buyPrice.subtotal|currency:'':2}} {{buy.buyPrice.currency}} → {{buy.buyPrice.qty}} BTC

A SMS containing a confirmation code was sent to your phone.
Please, enter the code below diff --git a/public/views/glidera.html b/public/views/glidera.html index c222eef6b..d19250c7a 100644 --- a/public/views/glidera.html +++ b/public/views/glidera.html @@ -165,7 +165,7 @@

- {{tx.subtotal}} {{tx.currency}} + {{tx.subtotal|currency:'':2}} {{tx.currency}}
diff --git a/public/views/modals/glidera-confirmation.html b/public/views/modals/glidera-confirmation.html index 11f007613..61bfa5c9c 100644 --- a/public/views/modals/glidera-confirmation.html +++ b/public/views/modals/glidera-confirmation.html @@ -1,15 +1,16 @@
-

Revoke Glidera Token

-
- -
-
- -
+

Are you sure you would like to log out of your Glidera account?

+

You will need to log back in to buy or sell bitcoin in Copay.

+
+ +
+
+ +
diff --git a/public/views/modals/glidera-tx-details.html b/public/views/modals/glidera-tx-details.html index ca7396496..0725e2de6 100644 --- a/public/views/modals/glidera-tx-details.html +++ b/public/views/modals/glidera-tx-details.html @@ -18,7 +18,7 @@ ng-style="{'background-color':color}" translate>Bought Sold
- {{tx.subtotal}} {{tx.currency}} + {{tx.subtotal|currency:'':2}} {{tx.currency}}
Completed @@ -32,28 +32,30 @@
  • - Date: + Date {{tx.transactionDate | amCalendar}}
  • - Price: - ${{tx.price}} {{tx.currency}} + Exchange rate + {{tx.price|currency:'':2}} {{tx.currency}}/BTC
  • - +
+

 

+
  • - Subtotal: - ${{tx.subtotal}} {{tx.currency}} + Subtotal + {{tx.subtotal|currency:'':2}} {{tx.currency}}
  • - Fees: - ${{tx.fees}} {{tx.currency}} + Fees + {{tx.fees|currency:'':2}} {{tx.currency}}
  • -
  • - Total: - ${{tx.total}} {{tx.currency}} +
  • + Total + {{tx.total|currency:'':2}} {{tx.currency}}
diff --git a/public/views/preferencesGlidera.html b/public/views/preferencesGlidera.html index 3d53632c3..818dd4b91 100644 --- a/public/views/preferencesGlidera.html +++ b/public/views/preferencesGlidera.html @@ -199,49 +199,49 @@
  • Daily Buy - {{glidera.limits.dailyBuy}} {{glidera.limits.currency}} + {{glidera.limits.dailyBuy|currency:'':2}} {{glidera.limits.currency}}
  • Daily Sell - {{glidera.limits.dailySell}} {{glidera.limits.currency}} + {{glidera.limits.dailySell|currency:'':2}} {{glidera.limits.currency}}
  • Monthly Buy - {{glidera.limits.monthlyBuy}} {{glidera.limits.currency}} + {{glidera.limits.monthlyBuy|currency:'':2}} {{glidera.limits.currency}}
  • Monthly Sell - {{glidera.limits.monthlySell}} {{glidera.limits.currency}} + {{glidera.limits.monthlySell|currency:'':2}} {{glidera.limits.currency}}
  • Daily Buy Remaining - {{glidera.limits.dailyBuyRemaining}} {{glidera.limits.currency}} + {{glidera.limits.dailyBuyRemaining|currency:'':2}} {{glidera.limits.currency}}
  • Daily Sell Remaining - {{glidera.limits.dailySellRemaining}} {{glidera.limits.currency}} + {{glidera.limits.dailySellRemaining|currency:'':2}} {{glidera.limits.currency}}
  • Monthly Buy Remaining - {{glidera.limits.monthlyBuyRemaining}} {{glidera.limits.currency}} + {{glidera.limits.monthlyBuyRemaining|currency:'':2}} {{glidera.limits.currency}}
  • Monthly Sell Remaining - {{glidera.limits.monthlySellRemaining}} {{glidera.limits.currency}} + {{glidera.limits.monthlySellRemaining|currency:'':2}} {{glidera.limits.currency}}
  • diff --git a/public/views/sellGlidera.html b/public/views/sellGlidera.html index 4f927ba8f..2e9a8f973 100644 --- a/public/views/sellGlidera.html +++ b/public/views/sellGlidera.html @@ -27,12 +27,12 @@
  • Daily sell limit: - ${{index.glideraLimits.dailySell}} - (${{index.glideraLimits.dailySellRemaining}} remaining) + {{index.glideraLimits.dailySell|currency:'':2}} {{index.glideraLimits.currency}} + (remaining {{index.glideraLimits.dailySellRemaining|currency:'':2}} {{index.glideraLimits.currency}})
    Monthly sell limit: - ${{index.glideraLimits.monthlySell}} - (${{index.glideraLimits.monthlySellRemaining}} remaining) + {{index.glideraLimits.monthlySell|currency:'':2}} {{index.glideraLimits.currency}} + (remaining {{index.glideraLimits.monthlySellRemaining|currency:'':2}} {{index.glideraLimits.currency}})
    @@ -67,9 +67,9 @@
    Sell - {{sell.sellPrice.currency}} {{sell.sellPrice.subtotal}} in Bitcoin + {{sell.sellPrice.subtotal|currency:'':2}} {{sell.sellPrice.currency}} in Bitcoin {{sell.sellPrice.qty}} BTC - at {{sell.sellPrice.price}} {{sell.sellPrice.currency}}/BTC + at {{sell.sellPrice.price|currency:'':2}} {{sell.sellPrice.currency}}/BTC
    @@ -89,7 +89,7 @@
    -{{sell.sellPrice.qty}} BTC → {{sell.sellPrice.currency}} {{sell.sellPrice.subtotal}} +{{sell.sellPrice.qty}} BTC → {{sell.sellPrice.subtotal|currency:'':2}} {{sell.sellPrice.currency}}

    A SMS containing a confirmation code was sent to your phone.
    Please, enter the code below diff --git a/src/js/controllers/buyGlidera.js b/src/js/controllers/buyGlidera.js index 5b4724fb0..2aaf7cbe7 100644 --- a/src/js/controllers/buyGlidera.js +++ b/src/js/controllers/buyGlidera.js @@ -11,6 +11,7 @@ angular.module('copayApp.controllers').controller('buyGlideraController', this.getBuyPrice = function(token, price) { var self = this; + this.error = null; if (!price || (price && !price.qty && !price.fiat)) { this.buyPrice = null; return; diff --git a/src/js/controllers/sellGlidera.js b/src/js/controllers/sellGlidera.js index 0fd2308c8..4d6622055 100644 --- a/src/js/controllers/sellGlidera.js +++ b/src/js/controllers/sellGlidera.js @@ -14,8 +14,8 @@ angular.module('copayApp.controllers').controller('sellGlideraController', this.getSellPrice = function(token, price) { var self = this; + this.error = null; if (!price || (price && !price.qty && !price.fiat)) { - this.error = null; this.sellPrice = null; return; }