mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-10 17:26:15 +01:00
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:
parent
963fd5de50
commit
befb288900
2 changed files with 7 additions and 4 deletions
|
@ -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="#######"
|
||||||
>
|
>
|
||||||
|
|
|
@ -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
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue