diff options
author | Maxim Devaev <[email protected]> | 2022-04-25 15:44:00 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-04-25 15:44:00 +0300 |
commit | 293490298cbe5896920b338f05a8d269b47c04fd (patch) | |
tree | 539cc1b49251f0c9b3ca51c0939be8c5bbacc312 /web | |
parent | 2294b5a9e167d72eecfd527c2f296312c34fbf2c (diff) |
report a serial number
Diffstat (limited to 'web')
-rw-r--r-- | web/share/js/kvm/session.js | 7 |
1 files changed, 6 insertions, 1 deletions
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: <span class="code-comment">${__info_hw_state.platform.base}</span><br> + Platform: + ${__formatPlatform(__info_hw_state.platform)} <hr> 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"]]); |