fix: assciation field in sub-table should support enable link when readOnly or readPrety (#3390)
This commit is contained in:
parent
bc927af640
commit
d3704f6807
@ -89,7 +89,6 @@ export const TableColumnDesigner = (props) => {
|
||||
readOnlyMode = 'read-pretty';
|
||||
}
|
||||
const isSelectFieldMode = isAssociationField && fieldMode === 'Select';
|
||||
|
||||
return (
|
||||
<GeneralSchemaDesigner disableInitializer>
|
||||
<SchemaSettingsModalItem
|
||||
@ -203,7 +202,7 @@ export const TableColumnDesigner = (props) => {
|
||||
collectionField?.interface,
|
||||
) &&
|
||||
!isFileField &&
|
||||
readOnlyMode === 'read-pretty' && (
|
||||
(readOnlyMode === 'read-pretty' || field.readPretty || field.readOnly) && (
|
||||
<SchemaSettingsSwitchItem
|
||||
title={t('Enable link')}
|
||||
checked={fieldSchema['x-component-props']?.enableLink !== false}
|
||||
|
Loading…
Reference in New Issue
Block a user