From 8c69be8923d99400ae31c35cdb98800c5d430271 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 16 Feb 2021 10:34:04 -0800 Subject: [PATCH] Error in previous commit. Correct labels for bill export IO-626 --- bodyshop_translations.babel | 21 +++++++++++++++++++ .../payable-export-all-button.component.jsx | 4 ++-- client/src/translations/en_us/common.json | 3 ++- client/src/translations/es/common.json | 3 ++- client/src/translations/fr/common.json | 3 ++- 5 files changed, 29 insertions(+), 5 deletions(-) diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index da8ef0d73..bf1fcf3a3 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -2333,6 +2333,27 @@ + + exported + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + diff --git a/client/src/components/payable-export-all-button/payable-export-all-button.component.jsx b/client/src/components/payable-export-all-button/payable-export-all-button.component.jsx index c3645b741..635695550 100644 --- a/client/src/components/payable-export-all-button/payable-export-all-button.component.jsx +++ b/client/src/components/payable-export-all-button/payable-export-all-button.component.jsx @@ -98,11 +98,11 @@ export function PayableExportAll({ }); if (!!!billUpdateResponse.errors) { notification["success"]({ - message: t("jobs.successes.exported"), + message: t("bills.successes.exported"), }); } else { notification["error"]({ - message: t("jobs.errors.exporting", { + message: t("bills.errors.exporting", { error: JSON.stringify(billUpdateResponse.error), }), }); diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json index e25f18194..610d544c6 100644 --- a/client/src/translations/en_us/common.json +++ b/client/src/translations/en_us/common.json @@ -155,7 +155,8 @@ }, "successes": { "created": "Invoice added successfully.", - "deleted": "Bill deleted successfully." + "deleted": "Bill deleted successfully.", + "exported": "Bill exported successfully." }, "validation": { "unique_invoice_number": "This invoice number has already been entered for this vendor." diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json index d8c27751a..3b1c7c50f 100644 --- a/client/src/translations/es/common.json +++ b/client/src/translations/es/common.json @@ -155,7 +155,8 @@ }, "successes": { "created": "", - "deleted": "" + "deleted": "", + "exported": "" }, "validation": { "unique_invoice_number": "" diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json index 6726893a1..1b1a1a413 100644 --- a/client/src/translations/fr/common.json +++ b/client/src/translations/fr/common.json @@ -155,7 +155,8 @@ }, "successes": { "created": "", - "deleted": "" + "deleted": "", + "exported": "" }, "validation": { "unique_invoice_number": ""