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

Shannon Sterz s.sterz at proxmox.com
Thu Dec 4 10:24:51 CET 2025


sorry send this by accident.

On Thu Dec 4, 2025 at 10:23 AM CET, Shannon Sterz wrote:
> 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")





More information about the yew-devel mailing list