Unify product cards and edit packaged amounts by pack
All checks were successful
Build and Deploy / build-and-push (push) Successful in 1m13s

This commit is contained in:
2026-04-10 15:29:52 +02:00
parent 86d47f126d
commit 527324515a
3 changed files with 101 additions and 22 deletions

View File

@@ -26,7 +26,7 @@ import {
renderCalendarGrid,
syncCalendarTodayButton,
} from './mealCalendar.js?v=1';
import { createIngredientCardController, getIngredientCardHTML } from './ingredientCard.js?v=20260410-106';
import { createIngredientCardController, getIngredientCardHTML } from './ingredientCard.js?v=20260410-107';
function esc(s) {
return String(s).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
@@ -674,6 +674,7 @@ export function setupMealPlanEditor() {
ingredientId: eid,
productId: cardBtn.dataset.pid || null,
selectedProductId: cardBtn.dataset.pid || null,
allowProductSelection: !cardBtn.dataset.pid,
sourceNote: 'Z planera',
onProductChange: (nextProductId) => {
if (!nextProductId) return;