UI for crypto fee warning.

This commit is contained in:
Brendon Duncan 2018-08-02 21:11:28 +12:00
commit 85a74bbd0e
2 changed files with 9 additions and 5 deletions

View file

@ -21,9 +21,10 @@ function reviewController(addressbookService, configService, $ionicConfig, $log,
vm.fee = {
cryptoAmount: '',
cryptoCurrencyCode: '',
cryptoDescription: '',
description: '',
fiatAmount: '',
fiatCurrency: ''
fiatCurrency: '',
high: false
};
vm.fee
vm.feeFiat = '';
@ -62,9 +63,10 @@ function reviewController(addressbookService, configService, $ionicConfig, $log,
vm.fee = {
cryptoAmount: '0.00195823',
cryptoCurrencyCode: 'BCH',
cryptoDescription: 'Less than 1 cent',
description: 'Less than 1 cent',
fiatAmount: '',
fiatCurrency: ''
fiatCurrency: '',
high: false
};
originWalletId = data.stateParams.fromWalletId;

View file

@ -72,7 +72,9 @@
</ion-content>
<div class="fee-summary">
<div class="fee-fiat positive">Fee: Less than 1 cent</div>
<div class="fee-fiat" ng-class="vm.fee.high ? 'negative' : 'positive'">
Fee: {{vm.fee.description}}<span ng-if="!vm.fee.description">{{vm.fee.fiatAmount}} {{vm.fee.fiatCurrency}}<span>
</div>
<div class="fee-crypto">
{{vm.fee.cryptoAmount}} {{vm.fee.cryptoCurrencyCode}}
</div>