UI for crypto fee warning.
This commit is contained in:
parent
e21592dec8
commit
85a74bbd0e
2 changed files with 9 additions and 5 deletions
|
|
@ -21,9 +21,10 @@ function reviewController(addressbookService, configService, $ionicConfig, $log,
|
||||||
vm.fee = {
|
vm.fee = {
|
||||||
cryptoAmount: '',
|
cryptoAmount: '',
|
||||||
cryptoCurrencyCode: '',
|
cryptoCurrencyCode: '',
|
||||||
cryptoDescription: '',
|
description: '',
|
||||||
fiatAmount: '',
|
fiatAmount: '',
|
||||||
fiatCurrency: ''
|
fiatCurrency: '',
|
||||||
|
high: false
|
||||||
};
|
};
|
||||||
vm.fee
|
vm.fee
|
||||||
vm.feeFiat = '';
|
vm.feeFiat = '';
|
||||||
|
|
@ -62,9 +63,10 @@ function reviewController(addressbookService, configService, $ionicConfig, $log,
|
||||||
vm.fee = {
|
vm.fee = {
|
||||||
cryptoAmount: '0.00195823',
|
cryptoAmount: '0.00195823',
|
||||||
cryptoCurrencyCode: 'BCH',
|
cryptoCurrencyCode: 'BCH',
|
||||||
cryptoDescription: 'Less than 1 cent',
|
description: 'Less than 1 cent',
|
||||||
fiatAmount: '',
|
fiatAmount: '',
|
||||||
fiatCurrency: ''
|
fiatCurrency: '',
|
||||||
|
high: false
|
||||||
};
|
};
|
||||||
|
|
||||||
originWalletId = data.stateParams.fromWalletId;
|
originWalletId = data.stateParams.fromWalletId;
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,9 @@
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|
||||||
<div class="fee-summary">
|
<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">
|
<div class="fee-crypto">
|
||||||
{{vm.fee.cryptoAmount}} {{vm.fee.cryptoCurrencyCode}}
|
{{vm.fee.cryptoAmount}} {{vm.fee.cryptoCurrencyCode}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue