diff --git a/lnbits/extensions/lnticket/templates/lnticket/index.html b/lnbits/extensions/lnticket/templates/lnticket/index.html index 6dafb4c2..9329be7b 100644 --- a/lnbits/extensions/lnticket/templates/lnticket/index.html +++ b/lnbits/extensions/lnticket/templates/lnticket/index.html @@ -281,7 +281,13 @@ {% endraw %} - + @@ -371,6 +377,9 @@ } }, methods: { + resetForm() { + this.formDialog.data = {flatrate: false} + }, getTickets: function () { var self = this @@ -463,7 +472,7 @@ .then(function (response) { self.forms.push(mapLNTicket(response.data)) self.formDialog.show = false - self.formDialog.data = {} + self.resetForm() }) .catch(function (error) { LNbits.utils.notifyApiError(error) @@ -497,7 +506,7 @@ }) self.forms.push(mapLNTicket(response.data)) self.formDialog.show = false - self.formDialog.data = {} + self.resetForm() }) .catch(function (error) { LNbits.utils.notifyApiError(error)