Use delete word instead of remove
This commit is contained in:
parent
50cbfa1e17
commit
a280c10e0e
2 changed files with 13 additions and 13 deletions
|
@ -66,8 +66,8 @@ export const CategoryDetails: React.StatelessComponent<
|
||||||
if (data.categoryDelete.errors.length === 0) {
|
if (data.categoryDelete.errors.length === 0) {
|
||||||
notify({
|
notify({
|
||||||
text: intl.formatMessage({
|
text: intl.formatMessage({
|
||||||
defaultMessage: "Category removed",
|
defaultMessage: "Category deleted",
|
||||||
id: "categoryDetailsCategoryRemoved"
|
id: "categoryDetailsCategoryDeleted"
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
navigate(categoryListUrl());
|
navigate(categoryListUrl());
|
||||||
|
@ -332,8 +332,8 @@ export const CategoryDetails: React.StatelessComponent<
|
||||||
>
|
>
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="Are you sure you want to remove {name}?"
|
defaultMessage="Are you sure you want to delete {name}?"
|
||||||
description="remove category"
|
description="delete category"
|
||||||
id="categoryDetailsDeleteCategoryDialogContent"
|
id="categoryDetailsDeleteCategoryDialogContent"
|
||||||
values={{
|
values={{
|
||||||
name: (
|
name: (
|
||||||
|
@ -349,7 +349,7 @@ export const CategoryDetails: React.StatelessComponent<
|
||||||
</DialogContentText>
|
</DialogContentText>
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="Remember that this will also remove all products assigned to this category."
|
defaultMessage="Remember that this will also delete all products assigned to this category."
|
||||||
id="categoryDetailsDeleteCategoryDialogContentAdditionalText"
|
id="categoryDetailsDeleteCategoryDialogContentAdditionalText"
|
||||||
/>
|
/>
|
||||||
</DialogContentText>
|
</DialogContentText>
|
||||||
|
@ -369,7 +369,7 @@ export const CategoryDetails: React.StatelessComponent<
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
title={intl.formatMessage({
|
title={intl.formatMessage({
|
||||||
defaultMessage: "Remove categories",
|
defaultMessage: "Delete categories",
|
||||||
description: "dialog title",
|
description: "dialog title",
|
||||||
id:
|
id:
|
||||||
"categoryDetailsDeleteSubcategoriesDialogTitle"
|
"categoryDetailsDeleteSubcategoriesDialogTitle"
|
||||||
|
@ -378,7 +378,7 @@ export const CategoryDetails: React.StatelessComponent<
|
||||||
>
|
>
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="Are you sure you want to remove {counter, plural,
|
defaultMessage="Are you sure you want to delete {counter, plural,
|
||||||
one {this attribute}
|
one {this attribute}
|
||||||
other {{displayQuantity} categories}
|
other {{displayQuantity} categories}
|
||||||
}?"
|
}?"
|
||||||
|
@ -393,7 +393,7 @@ export const CategoryDetails: React.StatelessComponent<
|
||||||
</DialogContentText>
|
</DialogContentText>
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="Remember that this will also remove all products assigned to this category."
|
defaultMessage="Remember that this will also delete all products assigned to this category."
|
||||||
id="categoryDetailsDeleteCategoriesDialogContentAdditionalText"
|
id="categoryDetailsDeleteCategoriesDialogContentAdditionalText"
|
||||||
/>
|
/>
|
||||||
</DialogContentText>
|
</DialogContentText>
|
||||||
|
@ -410,7 +410,7 @@ export const CategoryDetails: React.StatelessComponent<
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
title={intl.formatMessage({
|
title={intl.formatMessage({
|
||||||
defaultMessage: "Remove products",
|
defaultMessage: "Delete products",
|
||||||
description: "dialog title",
|
description: "dialog title",
|
||||||
id:
|
id:
|
||||||
"categoryDetailsDeleteProductsDialogTitle"
|
"categoryDetailsDeleteProductsDialogTitle"
|
||||||
|
@ -420,7 +420,7 @@ export const CategoryDetails: React.StatelessComponent<
|
||||||
{" "}
|
{" "}
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="Are you sure you want to remove {counter, plural,
|
defaultMessage="Are you sure you want to delete {counter, plural,
|
||||||
one {this attribute}
|
one {this attribute}
|
||||||
other {{displayQuantity} products}
|
other {{displayQuantity} products}
|
||||||
}?"
|
}?"
|
||||||
|
|
|
@ -127,14 +127,14 @@ export const CategoryList: React.StatelessComponent<CategoryListProps> = ({
|
||||||
}
|
}
|
||||||
open={params.action === "delete"}
|
open={params.action === "delete"}
|
||||||
title={intl.formatMessage({
|
title={intl.formatMessage({
|
||||||
defaultMessage: "Remove categories",
|
defaultMessage: "Delete categories",
|
||||||
description: "dialog title",
|
description: "dialog title",
|
||||||
id: "categoryListDeleteSubcategoriesDialogTitle"
|
id: "categoryListDeleteSubcategoriesDialogTitle"
|
||||||
})}
|
})}
|
||||||
variant="delete"
|
variant="delete"
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="Are you sure you want to remove {counter, plural,
|
defaultMessage="Are you sure you want to delete {counter, plural,
|
||||||
one {this attribute}
|
one {this attribute}
|
||||||
other {{displayQuantity} categories}
|
other {{displayQuantity} categories}
|
||||||
}?"
|
}?"
|
||||||
|
@ -146,7 +146,7 @@ export const CategoryList: React.StatelessComponent<CategoryListProps> = ({
|
||||||
/>
|
/>
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="Remember that this will also remove all products assigned to this category."
|
defaultMessage="Remember that this will also delete all products assigned to this category."
|
||||||
id="categoryListDeleteCategoriesDialogContentAdditionalText"
|
id="categoryListDeleteCategoriesDialogContentAdditionalText"
|
||||||
/>
|
/>
|
||||||
</DialogContentText>
|
</DialogContentText>
|
||||||
|
|
Loading…
Reference in a new issue