only ask for restart on funding changes
This commit is contained in:
parent
dade3d1937
commit
eca123b3f8
1 changed files with 3 additions and 2 deletions
|
|
@ -437,7 +437,6 @@
|
||||||
this.settings = response.data
|
this.settings = response.data
|
||||||
this.formData = _.clone(this.settings)
|
this.formData = _.clone(this.settings)
|
||||||
this.updateFundingData()
|
this.updateFundingData()
|
||||||
console.log(this.settings)
|
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
LNbits.utils.notifyApiError(error)
|
LNbits.utils.notifyApiError(error)
|
||||||
|
|
@ -455,9 +454,11 @@
|
||||||
data
|
data
|
||||||
)
|
)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
this.needsRestart =
|
||||||
|
this.settings.lnbits_backend_wallet_class !==
|
||||||
|
response.data.settings.lnbits_backend_wallet_class
|
||||||
this.settings = response.data.settings
|
this.settings = response.data.settings
|
||||||
this.formData = _.clone(this.settings)
|
this.formData = _.clone(this.settings)
|
||||||
this.needsRestart = true
|
|
||||||
this.updateFundingData()
|
this.updateFundingData()
|
||||||
this.$q.notify({
|
this.$q.notify({
|
||||||
type: 'positive',
|
type: 'positive',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue