Merged formatting of some amounts.

This commit is contained in:
Brendon Duncan 2018-08-10 14:30:53 +12:00
commit 14724ea6f6
3 changed files with 9 additions and 9 deletions

View file

@ -16,12 +16,12 @@
<div class="primary-amount"
ng-class="{long: vm.amount.length > 5, 'very-long': vm.amount.length > 10}">
<span class="primary-amount-display text-selectable">
<formatted-amount value="{{vm.amount || '0'}}" currency="{{vm.unit}}"></formatted-amount>
{{vm.amount || '0'}} {{vm.unit}}
</span>
</div>
<span ng-show="vm.globalResult"><formatted-amount value="{{vm.globalResult}}" currency="{{vm.unit}}"></formatted-amount></span>
<div class="alternative-amount">
<span class="text-selectable"><formatted-amount value="{{vm.alternativeAmount || '0.00'}}" currency="{{vm.alternativeUnit}}"></formatted-amount></span>
{{vm.alternativeAmount || '0.00'}} {{vm.alternativeUnit}}
</div>
<div class="switch-currencies" ng-click="vm.changeUnit()"><img src="img/icon-convert.svg"></div>
</div>

View file

@ -24,7 +24,7 @@
(possible double spend)
</span>
<span ng-if="tx.action != 'invalid'">
{{tx.amountStr}}
<formatted-amount value={{tx.amountStr}}></formatted-amount>
</span>
</span>
<div>

View file

@ -10,7 +10,7 @@
<div ng-if="notification.type == 'NewOutgoingTx'">
<span translate>Payment Sent </span>
<div class="wallet-activity-amount">
{{notification.amountStr}}
<formatted-amount value={{notification.amountStr}}
</div>
</div>
@ -19,7 +19,7 @@
<div ng-if="notification.type == 'NewIncomingTx'">
<span translate>Payment Received</span>
<div class="wallet-activity-amount">
{{notification.amountStr}}
<formatted-amount value={{notification.amountStr}}></formatted-amount>
</div>
</div>
@ -27,7 +27,7 @@
<span translate>Proposal Deleted</span>:
<b>{{notification.message}}</b>
<div class="wallet-activity-amount">
{{notification.amountStr}}:
<formatted-amount value={{notification.amountStr}}></formatted-amount>:
</div>
</div>
@ -35,7 +35,7 @@
<span translate>Proposal Rejected</span>:
<b>{{notification.message}}</b>
<div class="wallet-activity-amount">
{{notification.amountStr}}:
<formatted-amount value={{notification.amountStr}}></formatted-amount>:
</div>
</div>
@ -43,7 +43,7 @@
<span translate>New Proposal</span>:
<b>{{notification.message}}</b>
<div class="wallet-activity-amount">
{{notification.amountStr}}
<formatted-amount value={{notification.amountStr}}></formatted-amount>
</div>
</span>
@ -51,7 +51,7 @@
<span translate>Proposal Accepted</span>:
<b>{{notification.message}}</b>
<div class="wallet-activity-amount">
{{notification.amountStr}}
<formatted-amount value={{notification.amountStr}}></formatted-amount>
</div>
</span>