From 5bf2b5ef88f9296a17d8250eddc38a38e8f0fa5c Mon Sep 17 00:00:00 2001 From: root Date: Sat, 25 Apr 2026 09:49:32 +0800 Subject: [PATCH] fix: replace v-else with v-if on node info table v-else on element was not recognized by Vue template compiler, causing the worker node info table to never render. Use v-if="nodes.length > 0" instead to ensure the table renders when data is available. --- web/html/nodes.html | 62 +++++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/web/html/nodes.html b/web/html/nodes.html index eaaaafe3..7f8be569 100644 --- a/web/html/nodes.html +++ b/web/html/nodes.html @@ -49,36 +49,38 @@
-
- - - - - - - - - - - - - - - - - - - - - - - - - - -
{{ i18n "pages.nodes.nodeId" }}[[ nodes[0].nodeId ]]
{{ i18n "pages.nodes.status" }} - -
{{ i18n "pages.nodes.lastHeartbeat" }}[[ nodes[0].lastHeartbeatAt ? formatTime(nodes[0].lastHeartbeatAt) : '-' ]]
{{ i18n "pages.nodes.lastSync" }}[[ nodes[0].lastSyncAt ? formatTime(nodes[0].lastSyncAt) : '-' ]]
{{ i18n "pages.nodes.syncVersion" }}[[ nodes[0].lastSeenVersion ]]
{{ i18n "pages.nodes.error" }}[[ nodes[0].lastError || '-' ]]
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
{{ i18n "pages.nodes.nodeId" }}[[ nodes[0].nodeId ]]
{{ i18n "pages.nodes.status" }} + +
{{ i18n "pages.nodes.lastHeartbeat" }}[[ nodes[0].lastHeartbeatAt ? formatTime(nodes[0].lastHeartbeatAt) : '-' ]]
{{ i18n "pages.nodes.lastSync" }}[[ nodes[0].lastSyncAt ? formatTime(nodes[0].lastSyncAt) : '-' ]]
{{ i18n "pages.nodes.syncVersion" }}[[ nodes[0].lastSeenVersion ]]
{{ i18n "pages.nodes.error" }}[[ nodes[0].lastError || '-' ]]
+