refactor: restrict the fields within the configured data scope in sub table (#2394)
This commit is contained in:
		
							parent
							
								
									f992987187
								
							
						
					
					
						commit
						3c161eab86
					
				@ -75,6 +75,7 @@ export const TableColumnDesigner = (props) => {
 | 
			
		||||
  if (fieldSchema['x-read-pretty'] === true) {
 | 
			
		||||
    readOnlyMode = 'read-pretty';
 | 
			
		||||
  }
 | 
			
		||||
  const isSelectFieldMode = isAssociationField && fieldMode === 'Select';
 | 
			
		||||
  return (
 | 
			
		||||
    <GeneralSchemaDesigner disableInitializer>
 | 
			
		||||
      <SchemaSettings.ModalItem
 | 
			
		||||
@ -109,7 +110,7 @@ export const TableColumnDesigner = (props) => {
 | 
			
		||||
          dn.refresh();
 | 
			
		||||
        }}
 | 
			
		||||
      />
 | 
			
		||||
      {currentMode && !field.readPretty && (
 | 
			
		||||
      {isSelectFieldMode && !field.readPretty && !uiSchema?.['x-read-pretty'] && (
 | 
			
		||||
        <SchemaSettings.ModalItem
 | 
			
		||||
          title={t('Set the data scope')}
 | 
			
		||||
          schema={
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user