From 35f408887fe8959c53faf3bca3e4c08a217c0b00 Mon Sep 17 00:00:00 2001 From: Marco Montanari Date: Wed, 27 Nov 2024 15:41:25 +0100 Subject: [PATCH] disabled --- src/app/components/MapMenuBar/index.tsx | 9 +++++++-- src/app/components/MultiRadioSelect/index.tsx | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/components/MapMenuBar/index.tsx b/src/app/components/MapMenuBar/index.tsx index 2ad5b63..4c24aeb 100644 --- a/src/app/components/MapMenuBar/index.tsx +++ b/src/app/components/MapMenuBar/index.tsx @@ -532,6 +532,7 @@ export function MapMenuBar(props: MapMenuBar) { menuSx={SelectMenuStyle} mobileIcon={} label={t('app.map.menuBar.indicator')} + disabled={inProgress} /> @@ -549,6 +550,7 @@ export function MapMenuBar(props: MapMenuBar) { } // label={'Model and Scenario'} label={t('app.map.menuBar.model')} + disabled={inProgress} /> @@ -565,6 +567,7 @@ export function MapMenuBar(props: MapMenuBar) { } // label={'Period'} label={t('app.map.menuBar.period')} + disabled={inProgress} /> @@ -580,7 +583,8 @@ export function MapMenuBar(props: MapMenuBar) { } activeCombinations={activeCombinations.current} label={t('app.map.menuBar.season')} - // label={'Season'} + // label={'Season'} + disabled={inProgress} /> @@ -593,6 +597,7 @@ export function MapMenuBar(props: MapMenuBar) { setDownloadDataOpen(true)} aria-label={t('app.map.menuBar.downloadMap')} + disabled={foundLayers === 0 || inProgress} > @@ -609,7 +614,7 @@ export function MapMenuBar(props: MapMenuBar) { startIcon={} onClick={() => setDownloadDataOpen(true)} aria-label={t('app.map.menuBar.downloadData')} - disabled={foundLayers === 0} + disabled={foundLayers === 0 || inProgress} > {t('app.map.menuBar.downloadData')} diff --git a/src/app/components/MultiRadioSelect/index.tsx b/src/app/components/MultiRadioSelect/index.tsx index b512747..2a98580 100644 --- a/src/app/components/MultiRadioSelect/index.tsx +++ b/src/app/components/MultiRadioSelect/index.tsx @@ -185,6 +185,7 @@ export function MultiRadioSelect(props: MultiRadioSelectProps) { aria-label={label} aria-hidden={false} multiple + disabled={disabled} value={values} renderValue={() => isMobile ? (