Refactor DocumentSize model to update 'updatedAt' field and adjust visibility logic

- Added a new 'updatedAt' field to the DocumentSize model for tracking updates, ensuring it is read-only and properly formatted.
- Removed the previous 'updatedAt' field and adjusted the visibility logic for the 'width' field based on the 'infiniteHeight' property, enhancing user experience.
This commit is contained in:
Tom Butcher 2026-07-27 02:45:57 +01:00
parent 9e65f6d46d
commit 71b432ba4d

View File

@ -98,6 +98,13 @@ export const DocumentSize = {
readOnly: true,
columnWidth: 180
},
{
name: 'updatedAt',
label: 'Updated At',
type: 'dateTime',
readOnly: true,
columnWidth: 175
},
{
name: 'name',
label: 'Name',
@ -107,11 +114,11 @@ export const DocumentSize = {
columnFixed: 'left'
},
{
name: 'updatedAt',
label: 'Updated At',
type: 'dateTime',
readOnly: true,
columnWidth: 175
name: 'infiniteHeight',
label: 'Infinite Height',
required: true,
columnWidth: 150,
type: 'bool'
},
{
name: 'width',
@ -128,16 +135,9 @@ export const DocumentSize = {
columnWidth: 150,
type: 'number',
suffix: 'mm',
disabled: (objectData) => {
return objectData.infiniteHeight
visible: (objectData) => {
return !objectData.infiniteHeight
}
},
{
name: 'infiniteHeight',
label: 'Infinite Height',
required: true,
columnWidth: 150,
type: 'bool'
}
]
}