From 3c36166767680616c014f34689756a0fe6271491 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Tue, 12 Jan 2021 14:23:27 -0800 Subject: [PATCH] Updated keys for templates. --- README.MD | 2 +- client/src/pages/jobs-all/jobs-all.container.jsx | 4 +++- client/src/utils/TemplateConstants.js | 12 ++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.MD b/README.MD index faffb369d..ec581daaa 100644 --- a/README.MD +++ b/README.MD @@ -12,7 +12,7 @@ To Start Hasura CLI: npx hasura console --admin-secret Dev-BodyShopAppBySnaptSoftware! Migrating to Staging: -npx hasura migrate apply --up 10 --endpoint https://db.imex.online/ --admin-secret Production-ImEXOnlineBySnaptSoftware! +npx hasura migrate apply --up 10 --endpoint https://db.imex.online/ --admin-secret Production-ImEXOnline!@# NGROK TEsting: diff --git a/client/src/pages/jobs-all/jobs-all.container.jsx b/client/src/pages/jobs-all/jobs-all.container.jsx index 7969ba126..907e7edee 100644 --- a/client/src/pages/jobs-all/jobs-all.container.jsx +++ b/client/src/pages/jobs-all/jobs-all.container.jsx @@ -48,7 +48,9 @@ export function AllJobs({ setBreadcrumbs, setSelectedHeader }) { useEffect(() => { document.title = t("titles.jobs-all"); setSelectedHeader("alljobs"); - setBreadcrumbs([{ link: "/manage/jobs", label: t("titles.bc.jobs-all") }]); + setBreadcrumbs([ + { link: "/manage/jobs/all", label: t("titles.bc.jobs-all") }, + ]); }, [t, setBreadcrumbs, setSelectedHeader]); if (error) return ; diff --git a/client/src/utils/TemplateConstants.js b/client/src/utils/TemplateConstants.js index ab1a6123d..973b7d21a 100644 --- a/client/src/utils/TemplateConstants.js +++ b/client/src/utils/TemplateConstants.js @@ -21,5 +21,17 @@ export const TemplateList = (type, object) => { drivingId: "job", key: "estimate_detail", }, + parts_order_confirmation: { + title: i18n.t("printcenter.jobs.parts_order_confirmation"), + description: "Parts Order", + drivingId: "job", + key: "parts_order_confirmation", + }, + parts_return_confirmation: { + title: i18n.t("printcenter.jobs.parts_return_confirmation"), + description: "Parts Return", + drivingId: "job", + key: "parts_return_confirmation", + }, }; };