[yew-devel] [PATCH yew-comp] node info: fix displaying boot mode

Shannon Sterz s.sterz at proxmox.com
Wed Dec 3 11:37:45 CET 2025


BootMode::Efi and BootMode::LegacyBios were accidentally switched
around.

Signed-off-by: Shannon Sterz <s.sterz at proxmox.com>
---
 src/node_info.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/node_info.rs b/src/node_info.rs
index b7c0360..0f8fcb5 100644
--- a/src/node_info.rs
+++ b/src/node_info.rs
@@ -253,9 +253,9 @@ pub fn node_info(data: Option<NodeStatus>) -> Container {
         )
         .with_optional_child(boot_mode.map(|m| {
             let mode = match m.mode {
-                BootMode::Efi => tr!("Legacy BIOS"),
-                BootMode::LegacyBios if m.secureboot => tr!("UEFI (Secure Boot Enabled)"),
-                BootMode::LegacyBios => tr!("UEFI"),
+                BootMode::LegacyBios => tr!("Legacy BIOS"),
+                BootMode::Efi if m.secureboot => tr!("UEFI (Secure Boot Enabled)"),
+                BootMode::Efi => tr!("UEFI"),
             };
             StatusRow::new(tr!("Boot Mode"))
                 .style("grid-column", "1/-1")
-- 
2.47.3





More information about the yew-devel mailing list