]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/node/StatusView.js
ui: node summary: add boot-mode information
[pve-manager.git] / www / manager6 / node / StatusView.js
index 41fb5135337e1b767d98bdd0a3c23fa163b6c380..24b2c8d8deedfa9f964efc78322f036370ab3908 100644 (file)
@@ -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,