[yew-devel] [PATCH yew-comp] node info: fix displaying boot mode
Lukas Wagner
l.wagner at proxmox.com
Wed Dec 3 11:40:31 CET 2025
On Wed Dec 3, 2025 at 11:37 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")
Thanks for the quick fix, looks good to me!
Reviewed-by: Lukas Wagner <l.wagner at proxmox.com>
More information about the yew-devel
mailing list