Semaine : un repos imposé n'affiche plus « disponible »
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
164f8f31e4
commit
2accbe1ef6
@@ -70,7 +70,7 @@ export function weekScreen({ store, nav, today }) {
|
|||||||
const row = (r) => {
|
const row = (r) => {
|
||||||
const label = r.slot ? slotLabel(r.slot, program) : null;
|
const label = r.slot ? slotLabel(r.slot, program) : null;
|
||||||
const title = label ? label.title : r.lock === "rest" ? "Repos imposé" : r.available ? "Libre" : "Off";
|
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.lock && r.slot) detail += " · imposé";
|
||||||
if (r.status?.done && r.status.shifted && r.status.date) detail += ` · faite ${dayName(r.status.date)}`;
|
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" : "";
|
const state = r.status?.done ? "✓ Fait" : r.skipped ? "✕ Non fait" : "";
|
||||||
|
|||||||
Reference in New Issue
Block a user