refactor: hide doc locale from admin editing UI
This commit is contained in:
@@ -25,7 +25,7 @@ export const ProductReviews: CollectionConfig = {
|
||||
},
|
||||
admin: {
|
||||
baseFilter: independentDocListFilter('title'),
|
||||
defaultColumns: ['title', 'docLocale', 'product', 'sourceName', 'sortOrder', 'status', 'updatedAt'],
|
||||
defaultColumns: ['title', 'product', 'sourceName', 'sortOrder', 'status', 'updatedAt'],
|
||||
description:
|
||||
'Editorial reviews, quotes, thumbnails, and outbound links associated with products. Homepage review quotes are also sourced from this collection, and English/Chinese entries are maintained as separate documents.',
|
||||
group: { en: 'Catalog', zh: '产品' },
|
||||
@@ -54,8 +54,7 @@ export const ProductReviews: CollectionConfig = {
|
||||
{ label: '简体中文', value: 'zh' },
|
||||
],
|
||||
admin: {
|
||||
position: 'sidebar',
|
||||
description: 'Independent document language for this review entry.',
|
||||
condition: () => false,
|
||||
},
|
||||
},
|
||||
{ name: 'title', label: { en: 'Title', zh: '标题' }, type: 'text', localized: true, required: true },
|
||||
|
||||
Reference in New Issue
Block a user