]> git.proxmox.com Git - pmg-gui.git/commitdiff
dashboard: show boot-mode information
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Feb 2024 15:19:16 +0000 (16:19 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Feb 2024 15:19:19 +0000 (16:19 +0100)
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>
js/dashboard/NodeInfo.js

index 1c3cfa344c54bb7ab25427909c3fe91f307498f7..e144e42915312478bc83c6f9b05dba80ea3ef0ec 100644 (file)
@@ -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',