From 505f5d7fbca45b69ac6c4721cdd97ee0c01524fa Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 26 Feb 2024 16:19:16 +0100 Subject: [PATCH] dashboard: show boot-mode information Add a extra row for showing the current boot mode, for that we need to grow the height of the status panel and graphs to have enough space again. Mirrors commit 1f1d8bf3 ("ui: node summary: add boot-mode information") from pve-manager. Signed-off-by: Thomas Lamprecht --- js/dashboard/NodeInfo.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/js/dashboard/NodeInfo.js b/js/dashboard/NodeInfo.js index 1c3cfa3..e144e42 100644 --- a/js/dashboard/NodeInfo.js +++ b/js/dashboard/NodeInfo.js @@ -100,6 +100,21 @@ Ext.define('PMG.NodeInfoPanel', { }, value: '', }, + { + colspan: 2, + title: gettext('Boot Mode'), + printBar: false, + textField: 'boot-info', + renderer: boot => { + if (boot.mode === 'legacy-bios') { + return 'Legacy BIOS'; + } else if (boot.mode === 'efi') { + return `EFI${boot.secureboot ? ' (Secure Boot)' : ''}`; + } + return Proxmox.Utils.unknownText; + }, + value: '', + }, { xtype: 'pmxNodeInfoRepoStatus', itemId: 'repositoryStatus',