diff --git a/src/components/PlanView.tsx b/src/components/PlanView.tsx index ecd1679..37c5324 100644 --- a/src/components/PlanView.tsx +++ b/src/components/PlanView.tsx @@ -359,7 +359,9 @@ export function PlanView({ ); } - const canTransition = TRANSITION_CATEGORIES.includes(el.category); + const ceT = computedElement(col.fromPhase.id, el.id); + const locked = !!ceT && ceT.status !== "ACTIVE"; // verkauft/getilgt + const canTransition = TRANSITION_CATEGORIES.includes(el.category) && !locked; const open = canTransition && transitionUnanswered(el, col.fromPhase, col.toPhase); return ( - {canTransition ? transitionSummary(el, col.fromPhase, col.toPhase) : "→"} + {canTransition ? transitionSummary(el, col.fromPhase, col.toPhase) : locked ? "–" : "→"} ); })}