mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 22:58:46 +01:00
fix: remove de-selected wallet
This commit is contained in:
parent
b9986b562a
commit
69c0b753f5
1 changed files with 4 additions and 2 deletions
|
@ -409,7 +409,7 @@
|
||||||
balance: null,
|
balance: null,
|
||||||
walletLinks: [],
|
walletLinks: [],
|
||||||
chargeLinks: [],
|
chargeLinks: [],
|
||||||
onchainwallet: '',
|
onchainwallet: null,
|
||||||
rescanning: false,
|
rescanning: false,
|
||||||
mempool: {
|
mempool: {
|
||||||
endpoint: ''
|
endpoint: ''
|
||||||
|
@ -505,6 +505,7 @@
|
||||||
methods: {
|
methods: {
|
||||||
cancelCharge: function (data) {
|
cancelCharge: function (data) {
|
||||||
this.formDialogCharge.data.description = ''
|
this.formDialogCharge.data.description = ''
|
||||||
|
this.formDialogCharge.data.onchain = false
|
||||||
this.formDialogCharge.data.onchainwallet = ''
|
this.formDialogCharge.data.onchainwallet = ''
|
||||||
this.formDialogCharge.data.lnbitswallet = ''
|
this.formDialogCharge.data.lnbitswallet = ''
|
||||||
this.formDialogCharge.data.time = null
|
this.formDialogCharge.data.time = null
|
||||||
|
@ -577,7 +578,8 @@
|
||||||
const data = this.formDialogCharge.data
|
const data = this.formDialogCharge.data
|
||||||
data.amount = parseInt(data.amount)
|
data.amount = parseInt(data.amount)
|
||||||
data.time = parseInt(data.time)
|
data.time = parseInt(data.time)
|
||||||
data.onchainwallet = this.onchainwallet?.id
|
data.lnbitswallet = data.lnbits ? this.lnbitswallet : null
|
||||||
|
data.onchainwallet = data.onchain ? this.onchainwallet?.id : null
|
||||||
this.createCharge(wallet, data)
|
this.createCharge(wallet, data)
|
||||||
},
|
},
|
||||||
refreshActiveChargesBalance: async function () {
|
refreshActiveChargesBalance: async function () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue