update
This commit is contained in:
parent
78b4b34830
commit
43be624ac2
@ -73,7 +73,7 @@ fn Main() -> impl IntoView {
|
||||
log!("action");
|
||||
if let components::filter::Action::Select(f) = action {
|
||||
log!("select");
|
||||
store.selected_filter().set(Some(vec![f]));
|
||||
store.selected_filter().set(Some(f));
|
||||
}
|
||||
}
|
||||
root=true
|
||||
|
||||
@ -59,7 +59,7 @@ fn group(
|
||||
<a
|
||||
class=("active", active)
|
||||
on:click=move |_| {
|
||||
on_action.run((Action::Select(filter),));
|
||||
on_action.run((Action::Select(vec![filter]),));
|
||||
}
|
||||
>
|
||||
<div class="flex gap-2">
|
||||
@ -164,7 +164,7 @@ fn leaf(
|
||||
<a
|
||||
class=("active", active)
|
||||
on:click=move |_| {
|
||||
on_action.run((Action::Select(filter),));
|
||||
on_action.run((Action::Select(vec![filter]),));
|
||||
}
|
||||
>
|
||||
<div class="flex gap-2">
|
||||
@ -204,7 +204,7 @@ fn leaf(
|
||||
pub enum Action {
|
||||
Up,
|
||||
Down,
|
||||
Select(Field<Filter>),
|
||||
Select(Vec<Field<Filter>>),
|
||||
}
|
||||
|
||||
#[component]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user