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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2024-02-26 16:19:16 +01:00
parent 378a1024cb
commit 505f5d7fbc

View File

@ -100,6 +100,21 @@ Ext.define('PMG.NodeInfoPanel', {
}, },
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: '',
},
{ {
xtype: 'pmxNodeInfoRepoStatus', xtype: 'pmxNodeInfoRepoStatus',
itemId: 'repositoryStatus', itemId: 'repositoryStatus',