mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-10-04 22:18:01 +00:00
ui: node summary: add 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. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
81fd95cf63
commit
1f1d8bf388
@ -2,7 +2,7 @@ Ext.define('PVE.node.StatusView', {
|
|||||||
extend: 'Proxmox.panel.StatusView',
|
extend: 'Proxmox.panel.StatusView',
|
||||||
alias: 'widget.pveNodeStatus',
|
alias: 'widget.pveNodeStatus',
|
||||||
|
|
||||||
height: 300,
|
height: 350,
|
||||||
bodyPadding: '15 5 15 5',
|
bodyPadding: '15 5 15 5',
|
||||||
|
|
||||||
layout: {
|
layout: {
|
||||||
@ -114,6 +114,21 @@ Ext.define('PVE.node.StatusView', {
|
|||||||
},
|
},
|
||||||
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: '',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
itemId: 'version',
|
itemId: 'version',
|
||||||
colspan: 2,
|
colspan: 2,
|
||||||
|
@ -150,7 +150,7 @@ Ext.define('PVE.node.Summary', {
|
|||||||
layout: 'column',
|
layout: 'column',
|
||||||
minWidth: 700,
|
minWidth: 700,
|
||||||
defaults: {
|
defaults: {
|
||||||
minHeight: 325,
|
minHeight: 350,
|
||||||
padding: 5,
|
padding: 5,
|
||||||
columnWidth: 1,
|
columnWidth: 1,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user