Fix admin notifications (#1803)

* fix save badge being on all the time

* make deep copy and add restart to notification popup
This commit is contained in:
Tiago Vasconcelos 2023-07-21 08:50:18 +01:00 committed by GitHub
parent 963fd5de50
commit befb288900
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View file

@ -47,7 +47,8 @@
<p>Invoice Expiry</p> <p>Invoice Expiry</p>
<q-input <q-input
filled filled
v-model="formData.lightning_invoice_expiry" v-model.number="formData.lightning_invoice_expiry"
type="number"
label="Invoice expiry (seconds)" label="Invoice expiry (seconds)"
mask="#######" mask="#######"
> >

View file

@ -376,7 +376,7 @@
]) ])
} }
}, },
created: function () { created() {
this.getSettings() this.getSettings()
this.getAudit() this.getAudit()
this.balance = +'{{ balance|safe }}' this.balance = +'{{ balance|safe }}'
@ -593,7 +593,7 @@
.then(response => { .then(response => {
this.isSuperUser = response.data.is_super_user || false this.isSuperUser = response.data.is_super_user || false
this.settings = response.data this.settings = response.data
this.formData = _.clone(this.settings) this.formData = {...this.settings}
this.updateFundingData() this.updateFundingData()
this.getNotifications() this.getNotifications()
}) })
@ -624,7 +624,9 @@
this.updateFundingData() this.updateFundingData()
this.$q.notify({ this.$q.notify({
type: 'positive', type: 'positive',
message: 'Success! Settings changed!', message: `Success! Settings changed! ${
this.needsRestart ? 'Restart required!' : ''
}`,
icon: null icon: null
}) })
}) })