From 1f1d8bf3889f9995abce51a7606890ffcfe38fad Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 22 Nov 2023 13:45:18 +0100 Subject: [PATCH] ui: node summary: add 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. Signed-off-by: Thomas Lamprecht --- www/manager6/node/StatusView.js | 17 ++++++++++++++++- www/manager6/node/Summary.js | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/www/manager6/node/StatusView.js b/www/manager6/node/StatusView.js index 41fb5135..24b2c8d8 100644 --- a/www/manager6/node/StatusView.js +++ b/www/manager6/node/StatusView.js @@ -2,7 +2,7 @@ Ext.define('PVE.node.StatusView', { extend: 'Proxmox.panel.StatusView', alias: 'widget.pveNodeStatus', - height: 300, + height: 350, bodyPadding: '15 5 15 5', layout: { @@ -114,6 +114,21 @@ Ext.define('PVE.node.StatusView', { }, 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: '', + }, { itemId: 'version', colspan: 2, diff --git a/www/manager6/node/Summary.js b/www/manager6/node/Summary.js index 03512d70..c2dca0df 100644 --- a/www/manager6/node/Summary.js +++ b/www/manager6/node/Summary.js @@ -150,7 +150,7 @@ Ext.define('PVE.node.Summary', { layout: 'column', minWidth: 700, defaults: { - minHeight: 325, + minHeight: 350, padding: 5, columnWidth: 1, },