From 664a7391d399ee32ed81ecfc55c38ca0289bd97d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Gonz=C3=A1lez?= Date: Tue, 16 Apr 2024 12:06:49 +0200 Subject: [PATCH] enables data and analysis routes from sidebar navigation --- client/src/components/icons/report.tsx | 30 ++----------------- .../containers/analysis-sidebar/component.tsx | 2 +- client/src/layouts/application/component.tsx | 3 +- 3 files changed, 5 insertions(+), 30 deletions(-) diff --git a/client/src/components/icons/report.tsx b/client/src/components/icons/report.tsx index a1d6021a7..75b655e06 100644 --- a/client/src/components/icons/report.tsx +++ b/client/src/components/icons/report.tsx @@ -3,34 +3,10 @@ import type { SVGAttributes } from 'react'; const ReportSVG = (props?: SVGAttributes) => { return ( - - - - - - - - - - - - - + + + - - - - - ); }; diff --git a/client/src/containers/analysis-sidebar/component.tsx b/client/src/containers/analysis-sidebar/component.tsx index bf16099c1..39a866947 100644 --- a/client/src/containers/analysis-sidebar/component.tsx +++ b/client/src/containers/analysis-sidebar/component.tsx @@ -142,7 +142,7 @@ const ScenariosComponent: React.FC<{ scrollref?: MutableRefObject = ({ children }) => { default: CollectionIconOutline, active: CollectionIconSolid, }, - disabled: true, }, { name: 'Analysis', href: '/analysis', icon: { default: ChartBarIconOutline, active: ChartBarIconSolid }, - disabled: true, + disabled: !!(!lastTask || lastTask?.status === 'processing'), }, ];