Enhance DocumentPrinter components with labelWidth adjustments and UI improvements
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
- Added labelWidth properties to NewDocumentPrinter and DocumentPrinterInfo components for better layout control. - Updated the DocumentPrinter model to change the label from 'Current Document Size' to 'Document Size' for clarity. - Improved the disabled state handling in DocumentPrinterInfo for better user experience during editing.
This commit is contained in:
parent
46173a54a5
commit
9e65f6d46d
@ -129,7 +129,9 @@ const DocumentPrinterInfo = () => {
|
|||||||
}}
|
}}
|
||||||
editLoading={objectFormState.editLoading}
|
editLoading={objectFormState.editLoading}
|
||||||
formValid={objectFormState.formValid}
|
formValid={objectFormState.formValid}
|
||||||
disabled={objectFormState.beingEditedByOther || objectFormState.loading}
|
disabled={
|
||||||
|
objectFormState.beingEditedByOther || objectFormState.loading
|
||||||
|
}
|
||||||
loading={objectFormState.editLoading}
|
loading={objectFormState.editLoading}
|
||||||
/>
|
/>
|
||||||
</Space>
|
</Space>
|
||||||
@ -164,6 +166,7 @@ const DocumentPrinterInfo = () => {
|
|||||||
loading={loading}
|
loading={loading}
|
||||||
indicator={<LoadingOutlined />}
|
indicator={<LoadingOutlined />}
|
||||||
isEditing={isEditing}
|
isEditing={isEditing}
|
||||||
|
labelWidth={165}
|
||||||
type='documentPrinter'
|
type='documentPrinter'
|
||||||
objectData={objectData}
|
objectData={objectData}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -21,6 +21,7 @@ const NewDocumentPrinter = ({ onOk, defaultValues }) => {
|
|||||||
bordered={false}
|
bordered={false}
|
||||||
isEditing={true}
|
isEditing={true}
|
||||||
required={true}
|
required={true}
|
||||||
|
labelWidth={100}
|
||||||
objectData={objectData}
|
objectData={objectData}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
@ -35,6 +36,7 @@ const NewDocumentPrinter = ({ onOk, defaultValues }) => {
|
|||||||
bordered={false}
|
bordered={false}
|
||||||
isEditing={true}
|
isEditing={true}
|
||||||
required={false}
|
required={false}
|
||||||
|
labelWidth={125}
|
||||||
visibleProperties={{ content: false, testObject: false }}
|
visibleProperties={{ content: false, testObject: false }}
|
||||||
objectData={objectData}
|
objectData={objectData}
|
||||||
/>
|
/>
|
||||||
@ -52,8 +54,12 @@ const NewDocumentPrinter = ({ onOk, defaultValues }) => {
|
|||||||
_id: false,
|
_id: false,
|
||||||
_reference: false,
|
_reference: false,
|
||||||
createdAt: false,
|
createdAt: false,
|
||||||
|
connectedAt: false,
|
||||||
|
state: false,
|
||||||
|
online: false,
|
||||||
updatedAt: false
|
updatedAt: false
|
||||||
}}
|
}}
|
||||||
|
labelWidth={130}
|
||||||
isEditing={false}
|
isEditing={false}
|
||||||
objectData={objectData}
|
objectData={objectData}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -211,7 +211,7 @@ export const DocumentPrinter = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'currentDocumentSize',
|
name: 'currentDocumentSize',
|
||||||
label: 'Current Document Size',
|
label: 'Document Size',
|
||||||
required: false,
|
required: false,
|
||||||
type: 'object',
|
type: 'object',
|
||||||
objectType: 'documentSize',
|
objectType: 'documentSize',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user