fix Payment request "Cancel invoice" button always showing

The Cancel current invoice button always showed even when there was active invoice
This commit is contained in:
Kukks 2019-11-02 08:43:31 +01:00
parent d66e8f2d13
commit 749146ad3c

View File

@ -186,7 +186,7 @@ else
Pay now
</button>
<button class="btn btn-secondary btn-lg mt-1"
v-if="!srvModel.pendingInvoiceHasPayments"
v-if="srvModel.anyPendingInvoice && !srvModel.pendingInvoiceHasPayments"
v-on:click="cancelPayment()"
:disabled="loading">
<div v-if="loading" class="spinner-grow spinner-grow-sm" role="status">