mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-25 11:14:02 +02:00
fix: remove de-selected wallet
This commit is contained in:
@@ -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 () {
|
||||||
|
Reference in New Issue
Block a user