[pdm-devel] applied: [PATCH yew-comp 1/2] tasks: don't mark running tasks from pve with 'error' color
Dietmar Maurer
dietmar at proxmox.com
Thu Mar 20 10:03:30 CET 2025
applied with minor changes
> yeah looks fine to me too
>
> alternatively we could maybe do (untested):
>
> match status {
> "RUNNING" | "OK" => {},
> status if status.starts_with("WARNINGS:") => { .. warning .. }
> _ => { .. error .. }
> }
changed this to:
match record.status.as_deref() {
Some("RUNNING" | "OK") | None => {}
Some(status) if status.starts_with("WARNINGS:") => {
args.add_class("pwt-color-warning")
}
_ => args.add_class("pwt-color-error"),
}
More information about the pdm-devel
mailing list