ViewModeSelection double selection fix
parent
4195456227
commit
1ad78b3ef1
|
@ -43,7 +43,11 @@ const ViewModeSelection = ({ callback }) => {
|
||||||
exclusive
|
exclusive
|
||||||
onChange={handleViewModeSelection}
|
onChange={handleViewModeSelection}
|
||||||
>
|
>
|
||||||
<ToggleButton value={ViewModes.TABLE} aria-label="table view mode">
|
<ToggleButton
|
||||||
|
value={ViewModes.TABLE}
|
||||||
|
aria-label="table view mode"
|
||||||
|
disabled={state.mode === ViewModes.TABLE}
|
||||||
|
>
|
||||||
<Tooltip title={t("ViewModes.Table")}>
|
<Tooltip title={t("ViewModes.Table")}>
|
||||||
<TableChartIcon />
|
<TableChartIcon />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
@ -51,6 +55,7 @@ const ViewModeSelection = ({ callback }) => {
|
||||||
<ToggleButton
|
<ToggleButton
|
||||||
value={ViewModes.ACCORDION}
|
value={ViewModes.ACCORDION}
|
||||||
aria-label="accordion view mode"
|
aria-label="accordion view mode"
|
||||||
|
disabled={state.mode === ViewModes.ACCORDION}
|
||||||
>
|
>
|
||||||
<Tooltip title={t("ViewModes.List")}>
|
<Tooltip title={t("ViewModes.List")}>
|
||||||
<ViewListIcon />
|
<ViewListIcon />
|
||||||
|
|
Loading…
Reference in New Issue