Update DocumentPrinter model to adjust 'updatedAt' and 'connectedAt' fields

- Added a new 'updatedAt' field for tracking the last update timestamp.
- Replaced the existing 'updatedAt' field with 'connectedAt' to accurately reflect the connection time.
- Ensured both fields are read-only and properly formatted for display in the UI.
This commit is contained in:
Tom Butcher 2026-07-27 02:39:30 +01:00
parent a23ff0c008
commit 46173a54a5

View File

@ -91,6 +91,13 @@ export const DocumentPrinter = {
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',
@ -99,13 +106,15 @@ export const DocumentPrinter = {
columnWidth: 200, columnWidth: 200,
columnFixed: 'left' columnFixed: 'left'
}, },
{ {
name: 'updatedAt', name: 'connectedAt',
label: 'Updated At', label: 'Connected At',
type: 'dateTime', type: 'dateTime',
readOnly: true, readOnly: true,
columnWidth: 175 columnWidth: 175
}, },
{ {
name: 'state', name: 'state',
label: 'Status', label: 'Status',
@ -115,13 +124,7 @@ export const DocumentPrinter = {
readOnly: true, readOnly: true,
columnWidth: 260 columnWidth: 260
}, },
{
name: 'connectedAt',
label: 'Connected At',
type: 'dateTime',
readOnly: true,
columnWidth: 175
},
{ {
name: 'online', name: 'online',
label: 'Online', label: 'Online',