feat(payload, ui): add admin.allowEdit relationship field (#8398)

This PR adds a new property `allowEdit` to the admin of the relationship
field. It is very similar to the existing `allowCreate`, only in this
case it hides the edit icon:

<img width="796" alt="image"
src="https://github.com/user-attachments/assets/bbe79bb2-db06-4ec4-b023-2f1c53330fcb">
This commit is contained in:
Germán Jabloñski
2024-09-27 10:22:03 -03:00
committed by GitHub
parent e900e8974b
commit 17e0547db3
11 changed files with 63 additions and 15 deletions

View File

@@ -1140,6 +1140,8 @@ export interface RelationshipField {
| null;
relationToSelf?: (string | null) | RelationshipField;
relationToSelfSelectOnly?: (string | null) | RelationshipField;
relationWithAllowCreateToFalse?: (string | null) | User;
relationWithAllowEditToFalse?: (string | null) | User;
relationWithDynamicDefault?: (string | null) | User;
relationHasManyWithDynamicDefault?: {
relationTo: 'users';