fix: regression receive dialog was not closing (#3587)
This commit is contained in:
parent
49cc8104fc
commit
a509eb8fdb
5 changed files with 8 additions and 3 deletions
2
lnbits/static/bundle-components.min.js
vendored
2
lnbits/static/bundle-components.min.js
vendored
File diff suppressed because one or more lines are too long
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
|
|
@ -22,7 +22,8 @@ window.g = Vue.reactive({
|
|||
walletEventListeners: [],
|
||||
showNewWalletDialog: false,
|
||||
newWalletType: 'lightning',
|
||||
updatePayments: false,
|
||||
updatePayments: false, // used for updating the lnbits-payment-list
|
||||
updatePaymentsHash: false, // used for closing the receive dialog
|
||||
currencies: WINDOW_SETTINGS.LNBITS_CURRENCIES ?? [],
|
||||
allowedCurrencies: WINDOW_SETTINGS.LNBITS_ALLOWED_CURRENCIES ?? [],
|
||||
locale: localStore('lnbits.lang', navigator.languages[1] ?? 'en'),
|
||||
|
|
|
|||
|
|
@ -657,6 +657,9 @@ window.PageWallet = {
|
|||
'g.lastActiveWallet'(val) {
|
||||
this.$q.localStorage.setItem('lnbits.lastActiveWallet', val)
|
||||
},
|
||||
'g.updatePaymentsHash'() {
|
||||
this.receive.show = false
|
||||
},
|
||||
'g.updatePayments'() {
|
||||
this.parse.show = false
|
||||
if (
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ window.windowMixin = {
|
|||
this.g.wallet.sat = data.wallet_balance
|
||||
// lnbits-payment-list is watching
|
||||
this.g.updatePayments = !this.g.updatePayments
|
||||
this.g.updatePaymentsHash = !this.g.updatePaymentsHash
|
||||
}
|
||||
|
||||
// NOTE: react only on incoming payments for now
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue