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
|
this.relay = data
|
||||||
|
|
||||||
console.log('### this.relay', this.relay)
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
LNbits.utils.notifyApiError(error)
|
LNbits.utils.notifyApiError(error)
|
||||||
}
|
}
|
||||||
|
|
@ -168,8 +167,6 @@ async function relayDetails(path) {
|
||||||
this.inkey
|
this.inkey
|
||||||
)
|
)
|
||||||
this.accounts = data
|
this.accounts = data
|
||||||
|
|
||||||
console.log('### this.accounts', this.accounts)
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
LNbits.utils.notifyApiError(error)
|
LNbits.utils.notifyApiError(error)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -100,9 +100,7 @@ const relays = async () => {
|
||||||
this.relayLinks.find(old => old.id === c.id)
|
this.relayLinks.find(old => old.id === c.id)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
console.log('### relayLinks', this.relayLinks)
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log('### getRelays', error)
|
|
||||||
LNbits.utils.notifyApiError(error)
|
LNbits.utils.notifyApiError(error)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -123,7 +121,6 @@ const relays = async () => {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showToggleRelayDialog: function (relay) {
|
showToggleRelayDialog: function (relay) {
|
||||||
console.log('### showToggleRelayDialog', relay)
|
|
||||||
if (relay.active) {
|
if (relay.active) {
|
||||||
this.toggleRelay(relay)
|
this.toggleRelay(relay)
|
||||||
return
|
return
|
||||||
|
|
@ -134,12 +131,10 @@ const relays = async () => {
|
||||||
this.toggleRelay(relay)
|
this.toggleRelay(relay)
|
||||||
})
|
})
|
||||||
.onCancel(async () => {
|
.onCancel(async () => {
|
||||||
console.log('#### onCancel')
|
|
||||||
relay.active = !relay.active
|
relay.active = !relay.active
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
toggleRelay: async function (relay) {
|
toggleRelay: async function (relay) {
|
||||||
console.log('### toggleRelay', relay)
|
|
||||||
try {
|
try {
|
||||||
await LNbits.api.request(
|
await LNbits.api.request(
|
||||||
'PUT',
|
'PUT',
|
||||||
|
|
|
||||||
|
|
@ -237,7 +237,6 @@
|
||||||
'',
|
'',
|
||||||
reqData
|
reqData
|
||||||
)
|
)
|
||||||
console.log('### data.invoice', data.invoice)
|
|
||||||
this.invoice = data.invoice
|
this.invoice = data.invoice
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
LNbits.utils.notifyApiError(error)
|
LNbits.utils.notifyApiError(error)
|
||||||
|
|
@ -245,7 +244,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created: function () {
|
created: function () {
|
||||||
console.log('### created', this.relay)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue