bug: When "expiry" is null, do not display "expiry" in payment details (#2349)
* Do not display expiry in payment details, when expiry is null
This commit is contained in:
parent
0ef9c4db10
commit
86821f4606
2 changed files with 5 additions and 2 deletions
2
lnbits/static/bundle.min.js
vendored
2
lnbits/static/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -238,7 +238,7 @@ Vue.component('lnbits-payment-details', {
|
||||||
{{ payment.date }} ({{ payment.dateFrom }})
|
{{ payment.date }} ({{ payment.dateFrom }})
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row" v-if="hasExpiry">
|
||||||
<b v-text="$t('expiry')"></b>:
|
<b v-text="$t('expiry')"></b>:
|
||||||
{{ payment.expirydate }} ({{ payment.expirydateFrom }})
|
{{ payment.expirydate }} ({{ payment.expirydateFrom }})
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -298,6 +298,9 @@ Vue.component('lnbits-payment-details', {
|
||||||
'0000000000000000000000000000000000000000000000000000000000000000'
|
'0000000000000000000000000000000000000000000000000000000000000000'
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
hasExpiry() {
|
||||||
|
return !!this.payment.expiry
|
||||||
|
},
|
||||||
hasSuccessAction() {
|
hasSuccessAction() {
|
||||||
return (
|
return (
|
||||||
this.hasPreimage &&
|
this.hasPreimage &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue