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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-11-22 13:45:18 +01:00
parent 81fd95cf63
commit 1f1d8bf388
2 changed files with 17 additions and 2 deletions

View File

@ -2,7 +2,7 @@ Ext.define('PVE.node.StatusView', {
extend: 'Proxmox.panel.StatusView', extend: 'Proxmox.panel.StatusView',
alias: 'widget.pveNodeStatus', alias: 'widget.pveNodeStatus',
height: 300, height: 350,
bodyPadding: '15 5 15 5', bodyPadding: '15 5 15 5',
layout: { layout: {
@ -114,6 +114,21 @@ Ext.define('PVE.node.StatusView', {
}, },
value: '', 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', itemId: 'version',
colspan: 2, colspan: 2,

View File

@ -150,7 +150,7 @@ Ext.define('PVE.node.Summary', {
layout: 'column', layout: 'column',
minWidth: 700, minWidth: 700,
defaults: { defaults: {
minHeight: 325, minHeight: 350,
padding: 5, padding: 5,
columnWidth: 1, columnWidth: 1,
}, },