fix(dashboard): product option delete message (#8934)

FIXES CC-408
This commit is contained in:
Frane Polić authored and GitHub committed 2024-09-02 11:56:56 +00:00
1 parent 0ce584029c
commit 56ceeeb4c7
2 files changed
+5 -3

No files matched your search

@@ -574,7 +574,9 @@
"create": { "create": {
"header": "Create Option", "header": "Create Option",
"successToast": "Option {{title}} was successfully created." "successToast": "Option {{title}} was successfully created."
} },
"deleteWarning": "You are about to delete the product option: {{title}}. This action cannot be undone."
}, },
"organization": { "organization": {
"header": "Organize", "header": "Organize",
@@ -20,8 +20,8 @@ const OptionActions = ({
const handleDelete = async () => { const handleDelete = async () => {
const res = await prompt({ const res = await prompt({
title: t("general.areYouSure"), title: t("general.areYouSure"),
description: t("products.deleteWarning", { description: t("products.options.deleteWarning", {
title: product.title, title: option.title,
}), }),
confirmText: t("actions.delete"), confirmText: t("actions.delete"),
cancelText: t("actions.cancel"), cancelText: t("actions.cancel"),