feat: export částečných receptů
This commit is contained in:
1 parent
5e76c404fb
commit
8377ce2205
16 files changed
+446
-147
No files matched your search
@@ -88,7 +88,8 @@ const MealTemplateForm = ({ template, meal, onSaved, onCancel }: Readonly<Props>
|
||||
const ingredientWeight = filledIngredients.reduce((sum, item) => sum + (item.weight ?? 0), 0);
|
||||
const prepMinutes = parseIntInput(form.prepMinutes);
|
||||
|
||||
const canSave = form.name.trim().length > 0 && filledIngredients.length > 0 && !busy;
|
||||
// Suroviny ani postup nejsou povinné — neúplný recept se doplní později (třeba z PDF k doplnění)
|
||||
const canSave = form.name.trim().length > 0 && !busy;
|
||||
|
||||
const save = async () => {
|
||||
if (!canSave) return;
|
||||
|
||||
Reference in new issue
Block a user