Skip to content

Commit

Permalink
disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sirmmo committed Nov 27, 2024
1 parent 461c055 commit 35f4088
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/app/components/MapMenuBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ export function MapMenuBar(props: MapMenuBar) {
menuSx={SelectMenuStyle}
mobileIcon={<ThermostatIcon />}
label={t('app.map.menuBar.indicator')}
disabled={inProgress}
/>
</Grid>
<Grid xs={1} def={4} sx={SecondRowStyle}>
Expand All @@ -549,6 +550,7 @@ export function MapMenuBar(props: MapMenuBar) {
}
// label={'Model and Scenario'}
label={t('app.map.menuBar.model')}
disabled={inProgress}
/>
</Grid>
<Grid xs={1} def={4} sx={SecondRowStyle}>
Expand All @@ -565,6 +567,7 @@ export function MapMenuBar(props: MapMenuBar) {
}
// label={'Period'}
label={t('app.map.menuBar.period')}
disabled={inProgress}
/>
</Grid>
<Grid xs={1} def={4} sx={SecondRowStyle}>
Expand All @@ -580,7 +583,8 @@ export function MapMenuBar(props: MapMenuBar) {
}
activeCombinations={activeCombinations.current}
label={t('app.map.menuBar.season')}
// label={'Season'}
// label={'Season'}
disabled={inProgress}
/>
</Grid>
<Grid xs={1} def={2} sx={SecondRowStyle}>
Expand All @@ -593,6 +597,7 @@ export function MapMenuBar(props: MapMenuBar) {
<IconButton
onClick={() => setDownloadDataOpen(true)}
aria-label={t('app.map.menuBar.downloadMap')}
disabled={foundLayers === 0 || inProgress}
>
<FileDownloadIcon />
</IconButton>
Expand All @@ -609,7 +614,7 @@ export function MapMenuBar(props: MapMenuBar) {
startIcon={<FileDownloadIcon />}
onClick={() => setDownloadDataOpen(true)}
aria-label={t('app.map.menuBar.downloadData')}
disabled={foundLayers === 0}
disabled={foundLayers === 0 || inProgress}
>
{t('app.map.menuBar.downloadData')}
</Button>
Expand Down
1 change: 1 addition & 0 deletions src/app/components/MultiRadioSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export function MultiRadioSelect(props: MultiRadioSelectProps) {
aria-label={label}
aria-hidden={false}
multiple
disabled={disabled}
value={values}
renderValue={() =>
isMobile ? (
Expand Down

0 comments on commit 35f4088

Please sign in to comment.