From c66b5a9aa9fa30abf16f79e83c39893b6379cbaa Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 15 Sep 2026 14:24:18 +0000 Subject: [PATCH] Update --- frontend/src/views/TicketDetailPage.tsx | 54 +++++++++++++------------ 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/frontend/src/views/TicketDetailPage.tsx b/frontend/src/views/TicketDetailPage.tsx index 461ae50..1740afb 100644 --- a/frontend/src/views/TicketDetailPage.tsx +++ b/frontend/src/views/TicketDetailPage.tsx @@ -1433,34 +1433,36 @@ export function TicketDetailPage({ periodType, period, ticketId, onNavigate, onO /> -
- {budgetedProjectEntries.map((entry) => { - const consumption = Number(entry.consumption_minutes ?? 0); - const percent = projectConsumptionPercent(consumption, entry.hour_budget_minutes); - const label = entry.teamspace_project || (entry.is_default ? "Standard" : "Ohne Teamspace-ID"); + {showBudgetedProjectEntries ? ( +
+ {budgetedProjectEntries.map((entry) => { + const consumption = Number(entry.consumption_minutes ?? 0); + const percent = projectConsumptionPercent(consumption, entry.hour_budget_minutes); + const label = entry.teamspace_project || (entry.is_default ? "Standard" : "Ohne Teamspace-ID"); - return ( -
-
- - {label} - {entry.is_default ? " · Standard" : ""} - {entry.budget_sync_disabled ? " · Budget geschützt" : ""} - - - {formatMinutes(consumption)} / {entry.hour_budget_minutes ? formatMinutes(entry.hour_budget_minutes) : "offen"} - + return ( +
+
+ + {label} + {entry.is_default ? " · Standard" : ""} + {entry.budget_sync_disabled ? " · Budget geschützt" : ""} + + + {formatMinutes(consumption)} / {entry.hour_budget_minutes ? formatMinutes(entry.hour_budget_minutes) : "offen"} + +
+
+
+
-
-
-
-
- ); - })} -
+ ); + })} +
+ ) : null}