From 333ce96fd8a11ee72374a081e778cc9c23263d7a Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Mon, 13 Jul 2026 23:37:30 +0100 Subject: [PATCH] Update HostInfo component to set label width for improved layout and modify Host model to add 'updatedAt' field while removing 'connectedAt' field for better data management. --- .../Dashboard/Management/Hosts/HostInfo.jsx | 1 + src/database/models/Host.js | 18 +++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/components/Dashboard/Management/Hosts/HostInfo.jsx b/src/components/Dashboard/Management/Hosts/HostInfo.jsx index ecf58f5..3bf999e 100644 --- a/src/components/Dashboard/Management/Hosts/HostInfo.jsx +++ b/src/components/Dashboard/Management/Hosts/HostInfo.jsx @@ -170,6 +170,7 @@ const HostInfo = () => { isEditing={isEditing} type='host' objectData={objectData} + labelWidth='175px' /> ) }} diff --git a/src/database/models/Host.js b/src/database/models/Host.js index d5dfd4d..04e2068 100644 --- a/src/database/models/Host.js +++ b/src/database/models/Host.js @@ -103,6 +103,13 @@ export const Host = { readOnly: true, columnWidth: 180 }, + { + name: 'updatedAt', + label: 'Updated At', + type: 'dateTime', + readOnly: true, + columnWidth: 175 + }, { name: 'name', label: 'Name', @@ -112,8 +119,8 @@ export const Host = { columnFixed: 'left' }, { - name: 'updatedAt', - label: 'Updated At', + name: 'connectedAt', + label: 'Connected At', type: 'dateTime', readOnly: true, columnWidth: 175 @@ -127,13 +134,6 @@ export const Host = { readOnly: true, columnWidth: 250 }, - { - name: 'connectedAt', - label: 'Connected At', - type: 'dateTime', - readOnly: true, - columnWidth: 175 - }, { name: 'online', label: 'Online',