]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/dashboard/NodeInfo.js
dashboard: show boot-mode information
[pmg-gui.git] / 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',