Added template list items.
This commit is contained in:
@@ -72,7 +72,7 @@ function Test({ bodyshop, setEmailOptions }) {
|
||||
replyTo: bodyshop.email,
|
||||
},
|
||||
template: {
|
||||
name: TemplateList().parts_order_confirmation.key,
|
||||
name: TemplateList().parts_order.key,
|
||||
variables: {
|
||||
id: "a7c2d4e1-f519-42a9-a071-c48cf0f22979",
|
||||
},
|
||||
|
||||
@@ -139,7 +139,7 @@ export function PartsOrderListTableComponent({
|
||||
templateObject={{
|
||||
name: record.isReturn
|
||||
? TemplateList("partsorder").parts_return_confirmation.key
|
||||
: TemplateList("partsorder").parts_order_confirmation.key,
|
||||
: TemplateList("partsorder").parts_order.key,
|
||||
variables: { id: record.id },
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -161,7 +161,7 @@ export function PartsOrderModalContainer({
|
||||
{
|
||||
name: isReturn
|
||||
? TemplateList("partsorder").parts_return_confirmation.key
|
||||
: TemplateList("partsorder").parts_order_confirmation.key,
|
||||
: TemplateList("partsorder").parts_order.key,
|
||||
variables: {
|
||||
id: insertResult.data.insert_parts_orders.returning[0].id,
|
||||
},
|
||||
@@ -169,8 +169,7 @@ export function PartsOrderModalContainer({
|
||||
{
|
||||
to: matchingVendor ? [matchingVendor.email] : null,
|
||||
replyTo: bodyshop.email,
|
||||
subject: TemplateList("partsorder", {}).parts_order_confirmation
|
||||
.subject,
|
||||
subject: TemplateList("partsorder", {}).parts_order.subject,
|
||||
},
|
||||
"e"
|
||||
);
|
||||
@@ -179,7 +178,7 @@ export function PartsOrderModalContainer({
|
||||
{
|
||||
name: isReturn
|
||||
? TemplateList("partsorder").parts_return_confirmation.key
|
||||
: TemplateList("partsorder").parts_order_confirmation.key,
|
||||
: TemplateList("partsorder").parts_order.key,
|
||||
variables: {
|
||||
id: insertResult.data.insert_parts_orders.returning[0].id,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user