Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update category delete modal text

Krzysztof Bialoglowicz532c5ead563c
diff --git a/saleor/static/dashboard-next/categories/views/CategoryDetails.tsx b/saleor/static/dashboard-next/categories/views/CategoryDetails.tsx
index 325b17a0de..22e01fd2a0 100644
--- a/saleor/static/dashboard-next/categories/views/CategoryDetails.tsx
+++ b/saleor/static/dashboard-next/categories/views/CategoryDetails.tsx
@@ -326,7 +326,7 @@ export const CategoryDetails: React.StatelessComponent<
<DialogContentText
dangerouslySetInnerHTML={{
__html: i18n.t(
- "Are you sure you want to remove <strong>{{ categoryName }}</strong>?",
+ "Are you sure you want to remove <strong>{{ categoryName }}</strong>? <br /> Remember that this will also remove all products assigned to this category.",
{
categoryName: maybe(
() => data.category.name
@@ -354,7 +354,7 @@ export const CategoryDetails: React.StatelessComponent<
<DialogContentText
dangerouslySetInnerHTML={{
__html: i18n.t(
- "Are you sure you want to remove <strong>{{ number }}</strong> categories?",
+ "Are you sure you want to remove <strong>{{ number }}</strong> categories? <br /> Remember that this will also remove all products assigned to this category. Remember that this will also remove all products assigned to this category.",
{
number: maybe(
() =>
diff --git a/saleor/static/dashboard-next/categories/views/CategoryList.tsx b/saleor/static/dashboard-next/categories/views/CategoryList.tsx
index e01685e2ea..8541e2f98e 100644
--- a/saleor/static/dashboard-next/categories/views/CategoryList.tsx
+++ b/saleor/static/dashboard-next/categories/views/CategoryList.tsx
@@ -124,7 +124,7 @@ export const CategoryList: React.StatelessComponent<CategoryListProps> = ({
<DialogContentText
dangerouslySetInnerHTML={{
__html: i18n.t(
- "Are you sure you want to remove <strong>{{ number }}</strong> categories?",
+ "Are you sure you want to remove <strong>{{ number }}</strong> categories? <br /> Remember that this will also remove all products assigned to this category",
{
number: maybe(
() => params.ids.length.toString(),