Adds support for 0, 2, 3 and 8 decimal places and locale commas and decimals

This commit is contained in:
Sam Cheng Hung 2018-07-27 17:03:09 +08:00
commit 47de79cc64
5 changed files with 84 additions and 26 deletions

View file

@ -15251,13 +15251,16 @@ ion-content.padded-bottom-cta-with-summary {
font-size: 1em; }
.amount .middle {
font-size: 0.7857em; }
font-size: 0.7857em;
margin-left: 5px; }
.amount .end {
font-size: 0.7857em; }
font-size: 0.7857em;
margin-left: 5px; }
.amount .currency {
font-size: 1em; }
font-size: 1em;
margin-left: 5px; }
/* This is for rules that don't yet have a home.
* Our goal is to delete this file. Search the regex: /class=".*CLASS.*?"/

View file

@ -1,6 +1,3 @@
<div class="amount">
<span class="start">{{start}}</span>
<span class="middle">{{middle}}</span>
<span class="end">{{end}}</span>
<span class="currency">{{currency}}</span>
<span ng-if="start.length > 0" class="start">{{start}}</span><span ng-if="middle.length > 0" class="middle">{{middle}}</span><span ng-if="end.length > 0" class="end">{{end}}</span><span ng-if="currency.length > 0" class="currency">{{currency}}</span>
</div>

View file

@ -69,8 +69,8 @@
<div class="fee-crypto"
ng-init="fee = {value: '0.00195823', currency: 'BCH'};">
<amount
value="fee.value"
currency="fee.currency"></amount>
value="{{fee.value}}"
currency="{{fee.currency}}"></amount>
</div>
</div>