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: {
|
seo: {
|
||||||
description: formData.seoDescription,
|
description: formData.seoDescription,
|
||||||
title: formData.seoTitle
|
title: formData.seoTitle
|
||||||
}
|
},
|
||||||
|
slug: formData.slug
|
||||||
},
|
},
|
||||||
parent: parentId || null
|
parent: parentId || null
|
||||||
}
|
}
|
||||||
|
|
|
@ -186,7 +186,8 @@ export const CategoryDetails: React.FC<CategoryDetailsProps> = ({
|
||||||
seo: {
|
seo: {
|
||||||
description: formData.seoDescription,
|
description: formData.seoDescription,
|
||||||
title: formData.seoTitle
|
title: formData.seoTitle
|
||||||
}
|
},
|
||||||
|
slug: formData.slug
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -180,7 +180,8 @@ export const CollectionDetails: React.FC<CollectionDetailsProps> = ({
|
||||||
seo: {
|
seo: {
|
||||||
description: formData.seoDescription,
|
description: formData.seoDescription,
|
||||||
title: formData.seoTitle
|
title: formData.seoTitle
|
||||||
}
|
},
|
||||||
|
slug: formData.slug
|
||||||
};
|
};
|
||||||
const isFeatured = data.shop.homepageCollection
|
const isFeatured = data.shop.homepageCollection
|
||||||
? data.shop.homepageCollection.id === data.collection.id
|
? data.shop.homepageCollection.id === data.collection.id
|
||||||
|
|
|
@ -1083,12 +1083,12 @@ export interface CollectionFilterInput {
|
||||||
export interface CollectionInput {
|
export interface CollectionInput {
|
||||||
isPublished?: boolean | null;
|
isPublished?: boolean | null;
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
slug?: string | null;
|
|
||||||
description?: string | null;
|
description?: string | null;
|
||||||
descriptionJson?: any | null;
|
descriptionJson?: any | null;
|
||||||
backgroundImage?: any | null;
|
backgroundImage?: any | null;
|
||||||
backgroundImageAlt?: string | null;
|
backgroundImageAlt?: string | null;
|
||||||
seo?: SeoInput | null;
|
seo?: SeoInput | null;
|
||||||
|
slug?: string | null;
|
||||||
publicationDate?: any | null;
|
publicationDate?: any | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue