From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] applied: [PATCH gui 2/4] dashboard: show boot-mode information
Date: Mon, 26 Feb 2024 17:28:51 +0100 [thread overview]
Message-ID: <20240226162853.2519262-2-t.lamprecht@proxmox.com> (raw)
In-Reply-To: <20240226162853.2519262-1-t.lamprecht@proxmox.com>
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 | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/js/dashboard/NodeInfo.js b/js/dashboard/NodeInfo.js
index 1c3cfa3..e144e42 100644
--- a/js/dashboard/NodeInfo.js
+++ b/js/dashboard/NodeInfo.js
@@ -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',
--
2.39.2
next prev parent reply other threads:[~2024-02-26 18:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-26 16:28 [pmg-devel] applied: [PATCH gui 1/4] dashboard: reduce noise in current kernel version Thomas Lamprecht
2024-02-26 16:28 ` Thomas Lamprecht [this message]
2024-02-26 16:28 ` [pmg-devel] applied [PATCH gui 3/4] dashboard: increase height of node-info and top-receiver panel to 300 Thomas Lamprecht
2024-02-26 16:28 ` [pmg-devel] applied: [PATCH gui 4/4] dashboard: show ten of the current top receiver Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240226162853.2519262-2-t.lamprecht@proxmox.com \
--to=t.lamprecht@proxmox.com \
--cc=pmg-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox