chore: code clean-up
This commit is contained in:
parent
dd9dbbe818
commit
8df0dc2f52
3 changed files with 0 additions and 10 deletions
|
|
@ -132,7 +132,6 @@ async function relayDetails(path) {
|
|||
)
|
||||
this.relay = data
|
||||
|
||||
console.log('### this.relay', this.relay)
|
||||
} catch (error) {
|
||||
LNbits.utils.notifyApiError(error)
|
||||
}
|
||||
|
|
@ -168,8 +167,6 @@ async function relayDetails(path) {
|
|||
this.inkey
|
||||
)
|
||||
this.accounts = data
|
||||
|
||||
console.log('### this.accounts', this.accounts)
|
||||
} catch (error) {
|
||||
LNbits.utils.notifyApiError(error)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,9 +100,7 @@ const relays = async () => {
|
|||
this.relayLinks.find(old => old.id === c.id)
|
||||
)
|
||||
)
|
||||
console.log('### relayLinks', this.relayLinks)
|
||||
} catch (error) {
|
||||
console.log('### getRelays', error)
|
||||
LNbits.utils.notifyApiError(error)
|
||||
}
|
||||
},
|
||||
|
|
@ -123,7 +121,6 @@ const relays = async () => {
|
|||
}
|
||||
},
|
||||
showToggleRelayDialog: function (relay) {
|
||||
console.log('### showToggleRelayDialog', relay)
|
||||
if (relay.active) {
|
||||
this.toggleRelay(relay)
|
||||
return
|
||||
|
|
@ -134,12 +131,10 @@ const relays = async () => {
|
|||
this.toggleRelay(relay)
|
||||
})
|
||||
.onCancel(async () => {
|
||||
console.log('#### onCancel')
|
||||
relay.active = !relay.active
|
||||
})
|
||||
},
|
||||
toggleRelay: async function (relay) {
|
||||
console.log('### toggleRelay', relay)
|
||||
try {
|
||||
await LNbits.api.request(
|
||||
'PUT',
|
||||
|
|
|
|||
|
|
@ -237,7 +237,6 @@
|
|||
'',
|
||||
reqData
|
||||
)
|
||||
console.log('### data.invoice', data.invoice)
|
||||
this.invoice = data.invoice
|
||||
} catch (error) {
|
||||
LNbits.utils.notifyApiError(error)
|
||||
|
|
@ -245,7 +244,6 @@
|
|||
}
|
||||
},
|
||||
created: function () {
|
||||
console.log('### created', this.relay)
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue