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