From 293490298cbe5896920b338f05a8d269b47c04fd Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Mon, 25 Apr 2022 15:44:00 +0300 Subject: report a serial number --- web/share/js/kvm/session.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'web') diff --git a/web/share/js/kvm/session.js b/web/share/js/kvm/session.js index 72d75ab6..ebcdd25d 100644 --- a/web/share/js/kvm/session.js +++ b/web/share/js/kvm/session.js @@ -130,7 +130,8 @@ export function Session() { let html = ""; if (__info_hw_state !== null) { html += ` - Platform base: ${__info_hw_state.platform.base}
+ Platform: + ${__formatPlatform(__info_hw_state.platform)}
Temperature: ${__formatTemp(__info_hw_state.health.temp)} @@ -151,6 +152,10 @@ export function Session() { $("about-hardware").innerHTML = html; }; + var __formatPlatform = function(state) { + return __formatUl([["Base", state.base], ["Serial", state.serial]]); + }; + var __formatFan = function(state) { if (!state.monitored) { return __formatUl([["Status", "Not monitored"]]); -- cgit v1.2.3