Improve descriptions
This commit is contained in:
parent
e75413b962
commit
50cbfa1e17
5 changed files with 12 additions and 18 deletions
|
@ -122,21 +122,20 @@ const CategoryList = withStyles(styles, { name: "CategoryList" })(
|
|||
<TableCell className={classes.colName}>
|
||||
<FormattedMessage
|
||||
defaultMessage="Category Name"
|
||||
description="category list: name column header"
|
||||
id="categoryListNameColumnHeader"
|
||||
/>
|
||||
</TableCell>
|
||||
<TableCell className={classes.colSubcategories}>
|
||||
<FormattedMessage
|
||||
defaultMessage="Subcategories"
|
||||
description="category list: subcategories column header"
|
||||
description="number of subcategories"
|
||||
id="categoryListSubcategoriesColumnHeader"
|
||||
/>
|
||||
</TableCell>
|
||||
<TableCell className={classes.colProducts}>
|
||||
<FormattedMessage
|
||||
defaultMessage="No. Products"
|
||||
description="category list: number of products column header"
|
||||
description="number of products in category"
|
||||
id="categoryListNumberOfProductsColumnHeader"
|
||||
/>
|
||||
</TableCell>
|
||||
|
|
|
@ -89,14 +89,14 @@ export const ProductList = withStyles(styles, { name: "ProductList" })(
|
|||
<TableCell className={classes.textLeft}>
|
||||
<FormattedMessage
|
||||
defaultMessage="Name"
|
||||
description="product list: product name column header"
|
||||
description="product name"
|
||||
id="categoryProductsNameHeader"
|
||||
/>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<FormattedMessage
|
||||
defaultMessage="Type"
|
||||
description="product list: product type column header"
|
||||
description="product type"
|
||||
id="categoryProductsTypeHeader"
|
||||
/>
|
||||
</TableCell>
|
||||
|
|
|
@ -37,7 +37,7 @@ export const CategoryProductsCard: React.StatelessComponent<
|
|||
title={intl.formatMessage(
|
||||
{
|
||||
defaultMessage: "Products in {name}",
|
||||
description: "products in category section header",
|
||||
description: "products in category, section header",
|
||||
id: "categoryProductsCardHeader"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -164,7 +164,7 @@ export const CategoryUpdatePage: React.StatelessComponent<
|
|||
>
|
||||
<FormattedMessage
|
||||
defaultMessage="Subcategories"
|
||||
description="category list: number of subcategories column header"
|
||||
description="number of subcategories in category"
|
||||
id="categoryUpdatePageSubcategoriesColumnHeader"
|
||||
/>
|
||||
</CategoriesTab>
|
||||
|
@ -174,7 +174,7 @@ export const CategoryUpdatePage: React.StatelessComponent<
|
|||
>
|
||||
<FormattedMessage
|
||||
defaultMessage="Products"
|
||||
description="category list: number of products column header"
|
||||
description="number of products in category"
|
||||
id="categoryUpdatePageProductsColumnHeader"
|
||||
/>
|
||||
</ProductsTab>
|
||||
|
|
|
@ -12,6 +12,7 @@ import useNotifier from "@saleor/hooks/useNotifier";
|
|||
import usePaginator, {
|
||||
createPaginationState
|
||||
} from "@saleor/hooks/usePaginator";
|
||||
import { commonMessages } from "@saleor/intl";
|
||||
import { PAGINATE_BY } from "../../config";
|
||||
import { getMutationState, maybe } from "../../misc";
|
||||
import { TypedProductBulkDeleteMutation } from "../../products/mutations";
|
||||
|
@ -65,8 +66,8 @@ export const CategoryDetails: React.StatelessComponent<
|
|||
if (data.categoryDelete.errors.length === 0) {
|
||||
notify({
|
||||
text: intl.formatMessage({
|
||||
defaultMessage: "Category deleted",
|
||||
id: "categoryDetailsCategoryDeleted"
|
||||
defaultMessage: "Category removed",
|
||||
id: "categoryDetailsCategoryRemoved"
|
||||
})
|
||||
});
|
||||
navigate(categoryListUrl());
|
||||
|
@ -142,10 +143,7 @@ export const CategoryDetails: React.StatelessComponent<
|
|||
if (data.categoryBulkDelete.errors.length === 0) {
|
||||
closeModal();
|
||||
notify({
|
||||
text: intl.formatMessage({
|
||||
defaultMessage: "Categories removed",
|
||||
id: "categoryDetailsCategoriesRemoved"
|
||||
})
|
||||
text: intl.formatMessage(commonMessages.savedChanges)
|
||||
});
|
||||
refetch();
|
||||
reset();
|
||||
|
@ -156,10 +154,7 @@ export const CategoryDetails: React.StatelessComponent<
|
|||
if (data.productBulkDelete.errors.length === 0) {
|
||||
closeModal();
|
||||
notify({
|
||||
text: intl.formatMessage({
|
||||
defaultMessage: "Products removed",
|
||||
id: "categoryDetailsProductsRemoved"
|
||||
})
|
||||
text: intl.formatMessage(commonMessages.savedChanges)
|
||||
});
|
||||
refetch();
|
||||
reset();
|
||||
|
|
Loading…
Reference in a new issue