diff --git a/src/app/sheets.rs b/src/app/sheets.rs index 0efafb0..4b3c671 100644 --- a/src/app/sheets.rs +++ b/src/app/sheets.rs @@ -184,39 +184,45 @@ fn ItemForm(editor: ItemEditor, list_id: i64) -> impl IntoView { -
- - "Icône" - -
- {Icon::ALL - .iter() - .map(|&i| { - view! { - - } - }) - .collect_view()} -
-
+ // New items keep the basket: the icon can be changed when editing. + {item_id + .map(|_| { + view! { +
+ + "Icône" + +
+ {Icon::ALL + .iter() + .map(|&i| { + view! { + + } + }) + .collect_view()} +
+
+ } + })}
{item_id