add slug field to category update and create
This commit is contained in:
parent
6ae8fcebcd
commit
37e0ecce26
5 changed files with 2141 additions and 475 deletions
2605
schema.graphql
2605
schema.graphql
File diff suppressed because it is too large
Load diff
|
@ -52,7 +52,8 @@ export const CategoryCreateView: React.FC<CategoryCreateViewProps> = ({
|
|||
seo: {
|
||||
description: formData.seoDescription,
|
||||
title: formData.seoTitle
|
||||
}
|
||||
},
|
||||
slug: formData.slug
|
||||
},
|
||||
parent: parentId || null
|
||||
}
|
||||
|
|
|
@ -186,7 +186,8 @@ export const CategoryDetails: React.FC<CategoryDetailsProps> = ({
|
|||
seo: {
|
||||
description: formData.seoDescription,
|
||||
title: formData.seoTitle
|
||||
}
|
||||
},
|
||||
slug: formData.slug
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -180,7 +180,8 @@ export const CollectionDetails: React.FC<CollectionDetailsProps> = ({
|
|||
seo: {
|
||||
description: formData.seoDescription,
|
||||
title: formData.seoTitle
|
||||
}
|
||||
},
|
||||
slug: formData.slug
|
||||
};
|
||||
const isFeatured = data.shop.homepageCollection
|
||||
? data.shop.homepageCollection.id === data.collection.id
|
||||
|
|
|
@ -1083,12 +1083,12 @@ export interface CollectionFilterInput {
|
|||
export interface CollectionInput {
|
||||
isPublished?: boolean | null;
|
||||
name?: string | null;
|
||||
slug?: string | null;
|
||||
description?: string | null;
|
||||
descriptionJson?: any | null;
|
||||
backgroundImage?: any | null;
|
||||
backgroundImageAlt?: string | null;
|
||||
seo?: SeoInput | null;
|
||||
slug?: string | null;
|
||||
publicationDate?: any | null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue