feat: export částečných receptů

This commit is contained in:
Ondřej Anděl committed 2026-11-06 13:39:45 +01:00
1 parent 5e76c404fb
commit 8377ce2205
16 files changed
+446 -147

No files matched your search

+2 -1
View File
@@ -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;