feat: save relay info updates
This commit is contained in:
parent
c05ecb054d
commit
a74cf42feb
3 changed files with 32 additions and 1 deletions
|
|
@ -157,7 +157,6 @@ const relays = async () => {
|
|||
},
|
||||
|
||||
sendFormDataRelay: async function () {
|
||||
console.log('### sendFormDataRelay')
|
||||
this.createRelay(this.formDialogRelay.data)
|
||||
},
|
||||
|
||||
|
|
@ -166,6 +165,13 @@ const relays = async () => {
|
|||
return obj.id === relayId
|
||||
})
|
||||
},
|
||||
handleRelayUpdated: function (relay) {
|
||||
const index = this.relayLinks.findIndex(r => r.id === relay.id)
|
||||
if (index !== -1) {
|
||||
relay.expanded = true
|
||||
this.relayLinks.splice(index, 1, relay)
|
||||
}
|
||||
},
|
||||
|
||||
exportrelayCSV: function () {
|
||||
LNbits.utils.exportCSV(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue