Browse Source

prettier formatting for lnticket extension

master
Kristjan 4 years ago
parent
commit
afa7fce1c4
  1. 8
      lnbits/extensions/lnticket/config.json
  2. 6
      lnbits/extensions/lnticket/templates/lnticket/display.html
  3. 7
      lnbits/extensions/lnticket/templates/lnticket/index.html

8
lnbits/extensions/lnticket/config.json

@ -1,6 +1,6 @@
{ {
"name": "Support Tickets", "name": "Support Tickets",
"short_description": "LN support ticket system", "short_description": "LN support ticket system",
"icon": "contact_support", "icon": "contact_support",
"contributors": ["benarc"] "contributors": ["benarc"]
} }

6
lnbits/extensions/lnticket/templates/lnticket/display.html

@ -142,7 +142,7 @@
name: self.formDialog.data.name, name: self.formDialog.data.name,
email: self.formDialog.data.email, email: self.formDialog.data.email,
ltext: self.formDialog.data.text, ltext: self.formDialog.data.text,
sats: self.formDialog.data.sats, sats: self.formDialog.data.sats
}) })
.then(function (response) { .then(function (response) {
self.paymentReq = response.data.payment_request self.paymentReq = response.data.payment_request
@ -171,7 +171,6 @@
paymentReq: null paymentReq: null
} }
dismissMsg() dismissMsg()
self.formDialog.data.name = '' self.formDialog.data.name = ''
self.formDialog.data.email = '' self.formDialog.data.email = ''
@ -179,9 +178,8 @@
self.$q.notify({ self.$q.notify({
type: 'positive', type: 'positive',
message: 'Sent, thank you!', message: 'Sent, thank you!',
icon: 'thumb_up', icon: 'thumb_up'
}) })
} }
}) })
.catch(function (error) { .catch(function (error) {

7
lnbits/extensions/lnticket/templates/lnticket/index.html

@ -252,7 +252,12 @@
{name: 'id', align: 'left', label: 'ID', field: 'id'}, {name: 'id', align: 'left', label: 'ID', field: 'id'},
{name: 'name', align: 'left', label: 'Name', field: 'name'}, {name: 'name', align: 'left', label: 'Name', field: 'name'},
{name: 'wallet', align: 'left', label: 'Wallet', field: 'wallet'}, {name: 'wallet', align: 'left', label: 'Wallet', field: 'wallet'},
{name: 'webhook', align: 'left', label: 'Webhook', field: 'webhook'}, {
name: 'webhook',
align: 'left',
label: 'Webhook',
field: 'webhook'
},
{ {
name: 'description', name: 'description',
align: 'left', align: 'left',

Loading…
Cancel
Save