fix: uuid & nanoid should be disabled when editing (#3762)
This commit is contained in:
parent
8e322ae151
commit
77cae4779a
@ -30,6 +30,7 @@ export class NanoidFieldInterface extends CollectionFieldInterface {
|
|||||||
required: true,
|
required: true,
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
'x-component': 'Input',
|
'x-component': 'Input',
|
||||||
|
'x-disabled': '{{ !createOnly }}',
|
||||||
description:
|
description:
|
||||||
"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}",
|
"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}",
|
||||||
},
|
},
|
||||||
|
@ -32,6 +32,7 @@ export class UUIDFieldInterface extends CollectionFieldInterface {
|
|||||||
required: true,
|
required: true,
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
'x-component': 'Input',
|
'x-component': 'Input',
|
||||||
|
'x-disabled': '{{ !createOnly }}',
|
||||||
description:
|
description:
|
||||||
"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}",
|
"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}",
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user