example: only show date if in scheduling mode

This commit is contained in:
Greg Johnston 2024-09-14 17:00:31 -04:00
parent b39895fa2d
commit 3646bf31b0

View file

@ -165,7 +165,7 @@ fn TodoRow(
prop:value=move || {
todo.status().scheduled_for_date().map(|n| n.get().to_string())
}
class:hidden=move || !todo.status().scheduled_for()
on:change:target=move |ev| {
if let Some(date) = todo.status().scheduled_for_date() {
let value = ev.target().value();