summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-04-25 15:44:00 +0300
committerMaxim Devaev <[email protected]>2022-04-25 15:44:00 +0300
commit293490298cbe5896920b338f05a8d269b47c04fd (patch)
tree539cc1b49251f0c9b3ca51c0939be8c5bbacc312 /web
parent2294b5a9e167d72eecfd527c2f296312c34fbf2c (diff)
report a serial number
Diffstat (limited to 'web')
-rw-r--r--web/share/js/kvm/session.js7
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"]]);