diff --git a/packages/core/client/src/collection-manager/interfaces/nanoid.ts b/packages/core/client/src/collection-manager/interfaces/nanoid.ts index 09fddf21b..594a816d1 100644 --- a/packages/core/client/src/collection-manager/interfaces/nanoid.ts +++ b/packages/core/client/src/collection-manager/interfaces/nanoid.ts @@ -30,6 +30,7 @@ export class NanoidFieldInterface extends CollectionFieldInterface { required: true, 'x-decorator': 'FormItem', 'x-component': 'Input', + 'x-disabled': '{{ !createOnly }}', description: "{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}", }, diff --git a/packages/core/client/src/collection-manager/interfaces/uuid.ts b/packages/core/client/src/collection-manager/interfaces/uuid.ts index b70b20668..a934d06d3 100644 --- a/packages/core/client/src/collection-manager/interfaces/uuid.ts +++ b/packages/core/client/src/collection-manager/interfaces/uuid.ts @@ -32,6 +32,7 @@ export class UUIDFieldInterface extends CollectionFieldInterface { required: true, 'x-decorator': 'FormItem', 'x-component': 'Input', + 'x-disabled': '{{ !createOnly }}', description: "{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}", },