From d6e8bed9443c26014d85e1517f69d5849f237002 Mon Sep 17 00:00:00 2001 From: Claas Date: Tue, 30 Jun 2026 13:28:21 +0200 Subject: [PATCH] Remove old state --- client/src/routes/_app/timer.tsx | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/client/src/routes/_app/timer.tsx b/client/src/routes/_app/timer.tsx index c974ead..d04c1bb 100644 --- a/client/src/routes/_app/timer.tsx +++ b/client/src/routes/_app/timer.tsx @@ -122,9 +122,6 @@ function TimerPage() { const timer = useQuery(() => timerQuery(userId)); - // Project selection is purely a local UI state — the DB only knows RUNNING or PAUSED - const [isSelectingProject, setIsSelectingProject] = createSignal(false); - const projects = useQuery(() => projectQuery(userId)); const selectableProjects = () => projects.data?.filter(isProject) ?? []; @@ -226,17 +223,15 @@ function TimerPage() { return ( <> - <Show when={!isSelectingProject()}> - <FloatingActionButtonAction - icon={timer.data?.status === TIMER_STATUS.RUNNING ? "pause" : "play-arrow"} - label={floatingActionButtonLabel()} - onClick={() => - timer.data?.status === TIMER_STATUS.RUNNING - ? pauseMutation.mutate() - : startMutation.mutate() - } - /> - </Show> + <FloatingActionButtonAction + icon={timer.data?.status === TIMER_STATUS.RUNNING ? "pause" : "play-arrow"} + label={floatingActionButtonLabel()} + onClick={() => + timer.data?.status === TIMER_STATUS.RUNNING + ? pauseMutation.mutate() + : startMutation.mutate() + } + /> <main class="flex min-h-full flex-col items-center justify-center gap-10 py-10"> <time class="text-on-surface font-mono text-7xl tracking-widest tabular-nums" -- 2.51.2