reset the form after close (#821)
This commit is contained in:
parent
1374aabf92
commit
c36da4172c
1 changed files with 12 additions and 3 deletions
|
|
@ -281,7 +281,13 @@
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
<q-card-actions align="right">
|
<q-card-actions align="right">
|
||||||
<q-btn flat label="CLOSE" color="primary" v-close-popup />
|
<q-btn
|
||||||
|
flat
|
||||||
|
label="CLOSE"
|
||||||
|
color="primary"
|
||||||
|
v-close-popup
|
||||||
|
@click="resetForm"
|
||||||
|
/>
|
||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
|
|
@ -371,6 +377,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
resetForm() {
|
||||||
|
this.formDialog.data = {flatrate: false}
|
||||||
|
},
|
||||||
getTickets: function () {
|
getTickets: function () {
|
||||||
var self = this
|
var self = this
|
||||||
|
|
||||||
|
|
@ -463,7 +472,7 @@
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
self.forms.push(mapLNTicket(response.data))
|
self.forms.push(mapLNTicket(response.data))
|
||||||
self.formDialog.show = false
|
self.formDialog.show = false
|
||||||
self.formDialog.data = {}
|
self.resetForm()
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
LNbits.utils.notifyApiError(error)
|
LNbits.utils.notifyApiError(error)
|
||||||
|
|
@ -497,7 +506,7 @@
|
||||||
})
|
})
|
||||||
self.forms.push(mapLNTicket(response.data))
|
self.forms.push(mapLNTicket(response.data))
|
||||||
self.formDialog.show = false
|
self.formDialog.show = false
|
||||||
self.formDialog.data = {}
|
self.resetForm()
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
LNbits.utils.notifyApiError(error)
|
LNbits.utils.notifyApiError(error)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue