parent
c7623e4c5a
commit
fd5d59786f
1 changed files with 2 additions and 8 deletions
|
|
@ -37,7 +37,6 @@ window.app = Vue.createApp({
|
||||||
domain: window.location.host,
|
domain: window.location.host,
|
||||||
currencies: [],
|
currencies: [],
|
||||||
fiatRates: {},
|
fiatRates: {},
|
||||||
checker: null,
|
|
||||||
payLinks: [],
|
payLinks: [],
|
||||||
payLinksTable: {
|
payLinksTable: {
|
||||||
pagination: {
|
pagination: {
|
||||||
|
|
@ -70,7 +69,6 @@ window.app = Vue.createApp({
|
||||||
this.payLinks = response.data.map(mapPayLink)
|
this.payLinks = response.data.map(mapPayLink)
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
clearInterval(this.checker)
|
|
||||||
LNbits.utils.notifyApiError(err)
|
LNbits.utils.notifyApiError(err)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
@ -178,7 +176,7 @@ window.app = Vue.createApp({
|
||||||
'/lnurlp/api/v1/links/' + linkId,
|
'/lnurlp/api/v1/links/' + linkId,
|
||||||
_.findWhere(this.g.user.wallets, {id: link.wallet}).adminkey
|
_.findWhere(this.g.user.wallets, {id: link.wallet}).adminkey
|
||||||
)
|
)
|
||||||
.then(response => {
|
.then(() => {
|
||||||
this.payLinks = _.reject(this.payLinks, obj => obj.id === linkId)
|
this.payLinks = _.reject(this.payLinks, obj => obj.id === linkId)
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
|
@ -237,11 +235,7 @@ window.app = Vue.createApp({
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if (this.g.user.wallets?.length) {
|
if (this.g.user.wallets?.length) {
|
||||||
var getPayLinks = this.getPayLinks
|
this.getPayLinks()
|
||||||
getPayLinks()
|
|
||||||
this.checker = setInterval(() => {
|
|
||||||
getPayLinks()
|
|
||||||
}, 20000)
|
|
||||||
}
|
}
|
||||||
LNbits.api
|
LNbits.api
|
||||||
.request('GET', '/lnurlp/api/v1/currencies')
|
.request('GET', '/lnurlp/api/v1/currencies')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue