From 8a5108425bdef2258d71011adc23a4f893b503e6 Mon Sep 17 00:00:00 2001 From: Mattias Thall Date: Wed, 27 May 2026 03:35:01 +0200 Subject: [PATCH] fix: top-bar indicator links to downloads when download/task is active Previously it always linked to /discovery. Now it links to /downloads when there are active downloads or tasks, and /discovery only when discovery is the sole thing running. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/components/Layout.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Layout.jsx b/frontend/src/components/Layout.jsx index 87a7aea..bfa72f0 100644 --- a/frontend/src/components/Layout.jsx +++ b/frontend/src/components/Layout.jsx @@ -129,10 +129,12 @@ function DownloadIndicator() { ); } + const indicatorTarget = (activeDownloads.length || tasks.length) ? "/downloads" : "/discovery"; + return (