diff --git a/js/ui/mealPlanEditor.js b/js/ui/mealPlanEditor.js index b1d90d6..eb6bd92 100644 --- a/js/ui/mealPlanEditor.js +++ b/js/ui/mealPlanEditor.js @@ -42,11 +42,15 @@ export function getMealPlanEditorHTML() {
-
+

+
-
+

Składniki

-
${getIngredientCardHTML({ idBase: 'mpe-pc' })}`; @@ -497,12 +495,16 @@ export function setupMealPlanEditor() { document.getElementById('mpe-title').textContent = S.mode === 'edit' ? 'Edytuj posiłek' : 'Zaplanuj posiłek'; document.getElementById('mpe-subtitle').textContent = recipe.title; - document.getElementById('mpe-confirm-label').textContent = S.mode === 'edit' ? 'Zapisz zmiany' : 'Dodaj do planu'; + document.getElementById('mpe-confirm-label').textContent = S.mode === 'edit' ? 'Zapisz' : 'Dodaj'; + const confirmBtn = document.getElementById('mpe-confirm-btn'); + if (confirmBtn) { + confirmBtn.setAttribute('aria-label', S.mode === 'edit' ? 'Zapisz zmiany' : 'Dodaj do planu'); + } const confirmIcon = document.getElementById('mpe-confirm-icon'); if (confirmIcon) { confirmIcon.className = S.mode === 'edit' - ? 'fas fa-check text-[11px]' - : 'fas fa-calendar-plus text-[11px]'; + ? 'fas fa-check text-[10px]' + : 'fas fa-plus text-[10px]'; } renderAll();