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>
<q-input
filled
v-model="formData.lightning_invoice_expiry"
v-model.number="formData.lightning_invoice_expiry"
type="number"
label="Invoice expiry (seconds)"
mask="#######"
>

View file

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