Modified how template list is generated to be a function to allow checking whether the templates can be printed.

This commit is contained in:
Patrick Fic
2020-09-11 14:43:04 -07:00
parent 984c001bd8
commit f7e74c5043
20 changed files with 167 additions and 207 deletions

View File

@@ -123,7 +123,7 @@ function InvoiceEnterModalContainer({
replyTo: bodyshop.email,
},
template: {
name: TemplateList.payment_receipt.key,
name: TemplateList().payment_receipt.key,
variables: {
id: newPayment.data.insert_payments.returning[0].id,
},
@@ -133,7 +133,7 @@ function InvoiceEnterModalContainer({
displayTemplateInWindow(
await RenderTemplate(
{
name: TemplateList.payment_receipt.key,
name: TemplateList().payment_receipt.key,
variables: {
id: newPayment.data.insert_payments.returning[0].id,
},