fix: join field description, custom components and loading state (#9703)
- [fix: join field shows loading when creating a document](9f7a2e7936) - [fix: join field descriptions](90e8cdb464) - [feat(ui): adds before & after inputs to join field](19d43329ad) --------- Co-authored-by: Patrik <patrik@payloadcms.com>
This commit is contained in:
@@ -47,6 +47,13 @@ export const Categories: CollectionConfig = {
|
||||
name: 'relatedPosts',
|
||||
label: 'Related Posts',
|
||||
type: 'join',
|
||||
admin: {
|
||||
components: {
|
||||
afterInput: ['/components/AfterInput.js#AfterInput'],
|
||||
beforeInput: ['/components/BeforeInput.js#BeforeInput'],
|
||||
Description: '/components/CustomDescription/index.js#FieldDescriptionComponent',
|
||||
},
|
||||
},
|
||||
collection: postsSlug,
|
||||
defaultSort: '-title',
|
||||
defaultLimit: 5,
|
||||
@@ -57,6 +64,9 @@ export const Categories: CollectionConfig = {
|
||||
name: 'hasManyPosts',
|
||||
type: 'join',
|
||||
collection: postsSlug,
|
||||
admin: {
|
||||
description: 'Static Description',
|
||||
},
|
||||
on: 'categories',
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user