This commit is contained in:
Sina Blattmann 2023-07-20 17:50:43 +02:00
parent ac8a2e6489
commit 9768a542b3
2 changed files with 11 additions and 8 deletions

View File

@ -19,6 +19,7 @@ const Log = () => {
borderBottomLeftRadius: 4, borderBottomLeftRadius: 4,
borderBottomRightRadius: 4, borderBottomRightRadius: 4,
borderColor: theme.palette.text.disabled, borderColor: theme.palette.text.disabled,
overflowX: "auto",
}} }}
> >
<ScalarGraph /> <ScalarGraph />

View File

@ -205,6 +205,15 @@ const ScalarGraph = () => {
</div> </div>
); );
} }
} else if (checkedToggles.length === 0) {
return (
<Alert sx={{ mt: 2 }} severity="info">
<FormattedMessage
id="makeASelection"
defaultMessage="Please make a selection on the left"
/>
</Alert>
);
} else if (toggles === null) { } else if (toggles === null) {
return ( return (
<Alert sx={{ mt: 2 }} severity="error"> <Alert sx={{ mt: 2 }} severity="error">
@ -215,14 +224,7 @@ const ScalarGraph = () => {
</Alert> </Alert>
); );
} }
return ( return null;
<Alert sx={{ mt: 2 }} severity="info">
<FormattedMessage
id="makeASelection"
defaultMessage="Please make a selection on the left"
/>
</Alert>
);
}; };
return <>{renderGraphs()}</>; return <>{renderGraphs()}</>;