Skip to content

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

Separate messages

Krzysztof Bialoglowicz630cd2970de2
diff --git a/saleor/static/dashboard-next/categories/views/CategoryDetails.tsx b/saleor/static/dashboard-next/categories/views/CategoryDetails.tsx
index a79d9bbb4c..77ec73f890 100644
--- a/saleor/static/dashboard-next/categories/views/CategoryDetails.tsx
+++ b/saleor/static/dashboard-next/categories/views/CategoryDetails.tsx
@@ -1,5 +1,6 @@
import DialogContentText from "@material-ui/core/DialogContentText";
import IconButton from "@material-ui/core/IconButton";
+import Typography from "@material-ui/core/Typography";
import DeleteIcon from "@material-ui/icons/Delete";
import * as React from "react";
@@ -326,7 +327,7 @@ export const CategoryDetails: React.StatelessComponent<
<DialogContentText
dangerouslySetInnerHTML={{
__html: i18n.t(
- "Are you sure you want to remove <strong>{{ categoryName }}</strong>? <br /> Remember that this will also remove all products assigned to this category.",
+ "Are you sure you want to remove <strong>{{ categoryName }}</strong>? <br /> ",
{
categoryName: maybe(
() => data.category.name
@@ -336,6 +337,11 @@ export const CategoryDetails: React.StatelessComponent<
)
}}
/>
+ <DialogContentText>
+ {i18n.t(
+ "Remember that this will also remove all products assigned to this category."
+ )}
+ </DialogContentText>
</ActionDialog>
<ActionDialog
open={params.action === "delete-categories"}
@@ -354,7 +360,7 @@ export const CategoryDetails: React.StatelessComponent<
<DialogContentText
dangerouslySetInnerHTML={{
__html: i18n.t(
- "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.",
+ "Are you sure you want to remove <strong>{{ number }}</strong> categories?",
{
number: maybe(
() =>
@@ -365,6 +371,11 @@ export const CategoryDetails: React.StatelessComponent<
)
}}
/>
+ <DialogContentText>
+ {i18n.t(
+ "Remember that this will also remove all products assigned to this category."
+ )}
+ </DialogContentText>
</ActionDialog>
<ActionDialog
open={params.action === "delete-products"}
diff --git a/saleor/static/dashboard-next/categories/views/CategoryList.tsx b/saleor/static/dashboard-next/categories/views/CategoryList.tsx
index 8541e2f98e..f03e920fe8 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? <br /> Remember that this will also remove all products assigned to this category",
+ "Are you sure you want to remove <strong>{{ number }}</strong> categories?",
{
number: maybe(
() => params.ids.length.toString(),
@@ -134,6 +134,11 @@ export const CategoryList: React.StatelessComponent<CategoryListProps> = ({
)
}}
/>
+ <DialogContentText>
+ {i18n.t(
+ "Remember that this will also remove all products assigned to this category."
+ )}
+ </DialogContentText>
</ActionDialog>
</>
);