fix: use Quasar.notify (#2707)
* fix: use Quasar.Notify.create instead of this.$q, had issues when pasting invoice, using the `Quasar` is more consistent
This commit is contained in:
@@ -185,7 +185,7 @@ window.app = Vue.createApp({
|
||||
LNbits.api
|
||||
.request('GET', '/admin/api/v1/restart/')
|
||||
.then(response => {
|
||||
this.$q.notify({
|
||||
Quasar.Notify.create({
|
||||
type: 'positive',
|
||||
message: 'Success! Restarted Server',
|
||||
icon: null
|
||||
@@ -260,7 +260,7 @@ window.app = Vue.createApp({
|
||||
this.settings.lnbits_killswitch !== this.formData.lnbits_killswitch
|
||||
this.settings = this.formData
|
||||
this.formData = _.clone(this.settings)
|
||||
this.$q.notify({
|
||||
Quasar.Notify.create({
|
||||
type: 'positive',
|
||||
message: `Success! Settings changed! ${
|
||||
this.needsRestart ? 'Restart required!' : ''
|
||||
@@ -279,7 +279,7 @@ window.app = Vue.createApp({
|
||||
LNbits.api
|
||||
.request('DELETE', '/admin/api/v1/settings')
|
||||
.then(response => {
|
||||
this.$q.notify({
|
||||
Quasar.Notify.create({
|
||||
type: 'positive',
|
||||
message:
|
||||
'Success! Restored settings to defaults, restart required!',
|
||||
|
||||
Reference in New Issue
Block a user