app,server: Allow to set the person count when creating a recipe

This commit is contained in:
traxys 2023-06-29 17:35:35 +02:00
parent 614ff07552
commit 8987991139
4 changed files with 31 additions and 1 deletions

View file

@ -357,6 +357,7 @@ pub fn RecipeCreator() -> Html {
.iter()
.map(|rcp_ig: &RecipeIngredient| (rcp_ig.id, rcp_ig.amount / (*pc) as f64))
.collect(),
person_count: (*pc) as _,
steps: (*s).clone(),
},
)