only ask for restart on funding changes

This commit is contained in:
Tiago Vasconcelos 2022-12-01 10:57:42 +00:00
parent dade3d1937
commit eca123b3f8

View file

@ -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',