dashboard: build the shared metric row at boot

buildMetricButtons() was defined but never called — a one-shot replace had
slipped the call into loadGuests()'s 401 branch, and removing that left no call
at all. So the dashboard rendered its data with an empty metric row: no way to
switch between the shared metrics. Called at boot now, anchored on the closing
script tag, and the harnesses plus the served-page browser check confirm the row
exists with all six data-metric buttons.
This commit is contained in:
inference-admin committed 2026-11-13 21:17:59 +00:00
1 parent 1340548859
commit f72af43051
1 file changed
+4
+4
View File
@@ -1718,6 +1718,10 @@ async function revokeKey(name) {
} catch (e) { flash(e.message, false); }
}
// The shared metric row (CHART_METRICS) is built here, at boot. It used to
// be missing entirely: a one-shot replace had put this call inside
// loadGuests()'s 401 branch, where it never ran.
buildMetricButtons();
load();
</script>
</body>