Refactor DocumentSizeInfo and DocumentTemplateInfo components for improved UI and functionality
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Adjusted the disabled state logic in DocumentSizeInfo and DocumentTemplateInfo components for better clarity during editing. - Added labelWidth properties to DocumentTemplateInfo for enhanced layout control. - Updated the labelWidth in DocumentTemplateInfo to improve consistency in UI presentation.
This commit is contained in:
parent
71b432ba4d
commit
4fbb434103
@ -121,7 +121,9 @@ const DocumentSizeInfo = () => {
|
||||
}}
|
||||
editLoading={objectFormState.editLoading}
|
||||
formValid={objectFormState.formValid}
|
||||
disabled={objectFormState.beingEditedByOther || objectFormState.loading}
|
||||
disabled={
|
||||
objectFormState.beingEditedByOther || objectFormState.loading
|
||||
}
|
||||
loading={objectFormState.editLoading}
|
||||
/>
|
||||
</Space>
|
||||
@ -154,6 +156,7 @@ const DocumentSizeInfo = () => {
|
||||
loading={loading}
|
||||
indicator={<LoadingOutlined />}
|
||||
isEditing={isEditing}
|
||||
labelWidth={160}
|
||||
type='documentSize'
|
||||
objectData={objectData}
|
||||
/>
|
||||
|
||||
@ -126,7 +126,9 @@ const DocumentTemplateInfo = () => {
|
||||
}}
|
||||
editLoading={objectFormState.editLoading}
|
||||
formValid={objectFormState.formValid}
|
||||
disabled={objectFormState.beingEditedByOther || objectFormState.loading}
|
||||
disabled={
|
||||
objectFormState.beingEditedByOther || objectFormState.loading
|
||||
}
|
||||
loading={objectFormState.editLoading}
|
||||
/>
|
||||
</Space>
|
||||
@ -167,7 +169,7 @@ const DocumentTemplateInfo = () => {
|
||||
content: false,
|
||||
testObject: false
|
||||
}}
|
||||
labelWidth='175px'
|
||||
labelWidth='190px'
|
||||
/>
|
||||
)
|
||||
}}
|
||||
|
||||
@ -84,6 +84,13 @@ export const DocumentJob = {
|
||||
readOnly: true,
|
||||
columnWidth: 180
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: 'name',
|
||||
label: 'Name',
|
||||
@ -97,13 +104,7 @@ export const DocumentJob = {
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
|
||||
{
|
||||
name: 'state',
|
||||
label: 'Status',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user