From 29689ff694cd08b890d3103c8d1fd654afd945dd Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 15 Jan 2021 08:37:37 -0800 Subject: [PATCH] Missed in previous commits. --- bodyshop_translations.babel | 21 +++++++++++++++++++ .../payment-modal/payment-modal.container.jsx | 6 +++++- client/src/translations/en_us/common.json | 1 + client/src/translations/es/common.json | 1 + client/src/translations/fr/common.json | 1 + client/src/utils/RenderTemplate.js | 7 +++---- 6 files changed, 32 insertions(+), 5 deletions(-) diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index 104262d2b..4e78825ea 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -22204,6 +22204,27 @@ + + edit + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + electronicpayment false diff --git a/client/src/components/payment-modal/payment-modal.container.jsx b/client/src/components/payment-modal/payment-modal.container.jsx index 8dece89be..a480b4415 100644 --- a/client/src/components/payment-modal/payment-modal.container.jsx +++ b/client/src/components/payment-modal/payment-modal.container.jsx @@ -166,7 +166,11 @@ function BillEnterModalContainer({ return ( form.submit()} diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json index 0eb3b13f6..a92db8ebf 100644 --- a/client/src/translations/en_us/common.json +++ b/client/src/translations/en_us/common.json @@ -1363,6 +1363,7 @@ "labels": { "balance": "Balance", "customer": "Customer", + "edit": "Edit Payment", "electronicpayment": "Use Electronic Payment Processing?", "insurance": "Insurance", "new": "New Payment", diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json index 28b230099..baaaaf95b 100644 --- a/client/src/translations/es/common.json +++ b/client/src/translations/es/common.json @@ -1363,6 +1363,7 @@ "labels": { "balance": "", "customer": "", + "edit": "", "electronicpayment": "", "insurance": "", "new": "", diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json index 8d28dca11..f7066a808 100644 --- a/client/src/translations/fr/common.json +++ b/client/src/translations/fr/common.json @@ -1363,6 +1363,7 @@ "labels": { "balance": "", "customer": "", + "edit": "", "electronicpayment": "", "insurance": "", "new": "", diff --git a/client/src/utils/RenderTemplate.js b/client/src/utils/RenderTemplate.js index a5c8d98fe..6912cad93 100644 --- a/client/src/utils/RenderTemplate.js +++ b/client/src/utils/RenderTemplate.js @@ -1,11 +1,10 @@ +import axios from "axios"; import gql from "graphql-tag"; import jsreport from "jsreport-browser-client-dist"; -import client from "../utils/GraphQLClient"; -import axios from "axios"; import { auth } from "../firebase/firebase.utils"; -import { TemplateList } from "./TemplateConstants"; -import { store } from "../redux/store"; import { setEmailOptions } from "../redux/email/email.actions"; +import { store } from "../redux/store"; +import client from "../utils/GraphQLClient"; const server = process.env.REACT_APP_REPORTS_SERVER_URL; jsreport.serverUrl = server;