Rezepte
Rezept hinzufügen
(activeFilter = f)} />
(pickerOpen = false)} height="55vh"> {#if pickerPlan}
{/if}
(undoVisible = false)} />
{ formData.set('planId', addPlanId); formData.set('slotDate', addSlotDate); formData.set('recipeId', addRecipeId); return async ({ result, update }) => { if (result.type === 'success') { undoPlanId = addPlanId; undoSlotId = (result.data as any)?.slot?.id ?? ''; undoMessage = `${pickerRecipeName} hinzugefügt`; undoVisible = true; await invalidateAll(); } await update({ reset: false }); }; }} >
{ formData.set('planId', updPlanId); formData.set('slotId', updSlotId); formData.set('recipeId', updRecipeId); return async ({ result, update }) => { if (result.type === 'success') { undoPlanId = updPlanId; undoSlotId = (result.data as any)?.slot?.id ?? ''; undoMessage = `${pickerRecipeName} hinzugefügt`; undoVisible = true; await invalidateAll(); } await update({ reset: false }); }; }} >
{ formData.set('planId', undoPlanId); formData.set('slotId', undoSlotId); return async ({ update }) => { await invalidateAll(); await update({ reset: false }); }; }} >