]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: node summary: add boot-mode information
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 Nov 2023 12:45:18 +0000 (13:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 Nov 2023 12:55:12 +0000 (13:55 +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.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/node/StatusView.js
www/manager6/node/Summary.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,
index 03512d70826a79b9e83570b5f2d50745424ed37b..c2dca0df1956f01799ccd12bec7cf797eac35fb6 100644 (file)
@@ -150,7 +150,7 @@ Ext.define('PVE.node.Summary', {
                    layout: 'column',
                    minWidth: 700,
                    defaults: {
-                       minHeight: 325,
+                       minHeight: 350,
                        padding: 5,
                        columnWidth: 1,
                    },