fixed display bug of generating address, and copy bitcoincash:

This commit is contained in:
Kadir Sekha 2018-01-11 15:03:41 +09:00
commit 37b5ef6ed9
3 changed files with 10 additions and 6 deletions

View file

@ -9,7 +9,7 @@
<div class="addr-list list">
<div class="item item-divider"></div>
<div ng-if="wallet.coin == 'bch'" class="item item-input item-select">
<div ng-if="showAddressTypes" class="item item-input item-select">
<div class="view-all input-label" translate>
Address type
</div>
@ -33,7 +33,7 @@
<div class="item item-divider"></div>
</div>
<div class="item" ng-repeat="a in allAddresses track by $index" copy-to-clipboard="wallet.coin == 'bch' ? a.translatedAddresses[addressType.type] : a.address">
<div class="item" ng-repeat="a in allAddresses track by $index" copy-to-clipboard="wallet.coin == 'bch' ? (addressType.type == 'cashaddr' ? 'bitcoincash:' : '') + a.translatedAddresses[addressType.type] : a.address">
{{wallet.coin == 'bch' ? a.translatedAddresses[addressType.type] : a.address}}
<div class="addr-path" ng-if="!a.balanceStr">
{{a.path}} {{a.createdOn * 1000 | amDateFormat:'MMMM Do YYYY, hh:mm a'}}