chore: file collection template preset fields should be disabled (#3810)
This commit is contained in:
parent
e9e116e476
commit
5e22103e33
@ -193,6 +193,10 @@ export const PresetFields = observer(
|
||||
rowSelection={{
|
||||
type: 'checkbox',
|
||||
selectedRowKeys,
|
||||
getCheckboxProps: (record) => ({
|
||||
disabled: form.values.template === 'file', // Column configuration not to be checked
|
||||
name: record.name,
|
||||
}),
|
||||
onChange: (_, selectedRows) => {
|
||||
const fields = getDefaultCollectionFields(selectedRows, form.values);
|
||||
const config = {
|
||||
|
@ -150,7 +150,6 @@ export class FileCollectionTemplate extends CollectionTemplate {
|
||||
title: `{{t("File storage", { ns: "${NAMESPACE}" })}}`,
|
||||
type: 'hasOne',
|
||||
name: 'storage',
|
||||
required: true,
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'Select',
|
||||
'x-reactions': ['{{useAsyncDataSource(loadStorages)}}'],
|
||||
|
Loading…
Reference in New Issue
Block a user