Hiding NetworkFee row in invoice if not applicable

This commit is contained in:
rockstardev 2021-07-06 13:15:18 +02:00 committed by Andrew Camilleri
parent 894dca2eef
commit 2e822c5878

View file

@ -124,7 +124,7 @@
{{srvModel.orderAmountFiat}}
</div>
</div>
<div class="line-items__item" v-show="srvModel.networkFee > 0">
<div class="line-items__item" v-show="srvModel.isMultiCurrency || srvModel.txCountForFee > 0">
<div class="line-items__item__label">
<span>{{$t("Network Cost")}}</span>
</div>
@ -132,8 +132,8 @@
<span v-if="srvModel.isMultiCurrency">
{{ srvModel.networkFee }} {{ srvModel.cryptoCode }}
</span>
<span v-else>
{{$t("txCount", {count: srvModel.txCountForFee})}} x {{ srvModel.networkFee }} {{ srvModel.cryptoCode }}
<span v-else-if="srvModel.txCountForFee > 0">
{{$t("txCount", {count: srvModel.txCount})}} x {{ srvModel.networkFee }} {{ srvModel.cryptoCode }}
</span>
</div>
</div>