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:
Dan Ribbens
2024-12-03 15:58:42 -05:00
committed by GitHub
parent fbb59bab0a
commit 67179a7fb8
9 changed files with 72 additions and 5 deletions

View File

@@ -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',
},
{