diff --git a/packages/core/client/src/collection-manager/Configuration/AddFieldAction.tsx b/packages/core/client/src/collection-manager/Configuration/AddFieldAction.tsx index dd61ddb14..b136086aa 100644 --- a/packages/core/client/src/collection-manager/Configuration/AddFieldAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/AddFieldAction.tsx @@ -142,7 +142,7 @@ export const AddFieldAction = () => { {t('Add field')} - + ); }; diff --git a/packages/core/client/src/collection-manager/Configuration/AddSubFieldAction.tsx b/packages/core/client/src/collection-manager/Configuration/AddSubFieldAction.tsx index ebd2953b3..56f88441e 100644 --- a/packages/core/client/src/collection-manager/Configuration/AddSubFieldAction.tsx +++ b/packages/core/client/src/collection-manager/Configuration/AddSubFieldAction.tsx @@ -134,7 +134,7 @@ export const AddSubFieldAction = () => { - + ); diff --git a/packages/core/client/src/collection-manager/interfaces/linkTo.ts b/packages/core/client/src/collection-manager/interfaces/linkTo.ts index 0ea3a9dd5..aced110fb 100644 --- a/packages/core/client/src/collection-manager/interfaces/linkTo.ts +++ b/packages/core/client/src/collection-manager/interfaces/linkTo.ts @@ -83,10 +83,12 @@ export const linkTo: IField = { 'x-reactions': ['{{useAsyncDataSource(loadCollections)}}'], 'x-decorator': 'FormItem', 'x-component': 'Select', + 'x-disabled': '{{ !createOnly }}', }, through: { type: 'string', title: '{{t("Junction collection")}}', + 'x-disabled': '{{ !createOnly }}', 'x-reactions': ['{{useAsyncDataSource(loadCollections)}}'], 'x-decorator': 'FormItem', 'x-component': 'Select', diff --git a/packages/core/client/src/collection-manager/interfaces/properties/index.ts b/packages/core/client/src/collection-manager/interfaces/properties/index.ts index 7311149b5..1400fa967 100644 --- a/packages/core/client/src/collection-manager/interfaces/properties/index.ts +++ b/packages/core/client/src/collection-manager/interfaces/properties/index.ts @@ -192,7 +192,7 @@ export const defaultProps = { type: 'string', title: '{{t("Field name")}}', required: true, - // 'x-disabled': true, + 'x-disabled': '{{ !createOnly }}', 'x-decorator': 'FormItem', 'x-component': 'Input', description: