From a8a780d1efd361df64e7c922dfb37b78b50625ba Mon Sep 17 00:00:00 2001 From: kelle Date: Tue, 14 Jul 2026 08:03:21 +0200 Subject: [PATCH] Uebergang: verkaufte/getilgte Elemente in Folgephasen nicht mehr klickbar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ist ein Element am jeweiligen Uebergang bereits verkauft/getilgt (status != ACTIVE), zeigt die Zelle nur noch "–" (nicht interaktiv, kein "?"), analog zu AHV. Co-Authored-By: Claude Opus 4.8 --- src/components/PlanView.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ? "–" : "→"} ); })}