Semaine : un repos imposé n'affiche plus « disponible »

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pierre MARTIN
2026-11-18 05:45:26 +01:00
co-authored by Claude Opus 5.5
parent 164f8f31e4
commit 2accbe1ef6
+1 -1
View File
@@ -70,7 +70,7 @@ export function weekScreen({ store, nav, today }) {
const row = (r) => {
const label = r.slot ? slotLabel(r.slot, program) : null;
const title = label ? label.title : r.lock === "rest" ? "Repos imposé" : r.available ? "Libre" : "Off";
let detail = label ? label.detail : r.available ? "disponible, rien à placer" : "";
let detail = label ? label.detail : r.lock === "rest" ? "" : r.available ? "disponible, rien à placer" : "";
if (r.lock && r.slot) detail += " · imposé";
if (r.status?.done && r.status.shifted && r.status.date) detail += ` · faite ${dayName(r.status.date)}`;
const state = r.status?.done ? "✓ Fait" : r.skipped ? "✕ Non fait" : "";