chore: code clean-up

This commit is contained in:
Vlad Stan 2023-02-22 11:38:33 +02:00
parent dd9dbbe818
commit 8df0dc2f52
3 changed files with 0 additions and 10 deletions

View file

@ -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)
}

View file

@ -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',

View file

@ -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>