Adds historic fiat rate to tx-details

This commit is contained in:
Gustavo Maximiliano Cortez 2016-11-09 10:40:18 -03:00
commit 164c775a79
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
2 changed files with 29 additions and 2 deletions

View file

@ -16,7 +16,13 @@
</div>
<div class="amount-label">
<div class="amount">{{displayAmount}} <span class="unit">{{displayUnit}}</span></div>
<div class="alternative">{{btx.alternativeAmountStr}}</div>
<div class="alternative" ng-click="getFiatRate(); showRate = !showRate">
<span ng-show="!showRate">{{btx.alternativeAmountStr}}</span>
<span ng-show="showRate">
<span ng-show="!loadingRate">{{rateStr}} ({{rateDate | amDateFormat:'MM/DD/YYYY HH:mm a'}})</span>
<span ng-show="loadingRate">...</span>
</span>
</div>
</div>
</div>
<div class="info">