mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-02 08:31:11 -08:00
Merge two accidental "Alerts page settings" sections into one
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
0d7db907a9
commit
60b71108e5
|
@ -107,36 +107,36 @@ const SettingsMenu: FC = () => {
|
||||||
|
|
||||||
<Stack>
|
<Stack>
|
||||||
<Fieldset p="md" legend="Alerts page settings">
|
<Fieldset p="md" legend="Alerts page settings">
|
||||||
<Checkbox
|
<Stack>
|
||||||
checked={showAnnotations}
|
<Checkbox
|
||||||
label="Show expanded annotations"
|
checked={showAnnotations}
|
||||||
onChange={(event) =>
|
label="Show expanded annotations"
|
||||||
dispatch(
|
onChange={(event) =>
|
||||||
updateSettings({
|
dispatch(
|
||||||
showAnnotations: event.currentTarget.checked,
|
updateSettings({
|
||||||
})
|
showAnnotations: event.currentTarget.checked,
|
||||||
)
|
})
|
||||||
}
|
)
|
||||||
/>
|
|
||||||
</Fieldset>
|
|
||||||
<Fieldset p="md" legend="Alerts page settings">
|
|
||||||
<NumberInput
|
|
||||||
min={1}
|
|
||||||
allowDecimal={false}
|
|
||||||
label="Alert groups per page"
|
|
||||||
value={alertGroupsPerPage}
|
|
||||||
onChange={(value) => {
|
|
||||||
if (typeof value !== "number") {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
/>
|
||||||
|
<NumberInput
|
||||||
|
min={1}
|
||||||
|
allowDecimal={false}
|
||||||
|
label="Alert groups per page"
|
||||||
|
value={alertGroupsPerPage}
|
||||||
|
onChange={(value) => {
|
||||||
|
if (typeof value !== "number") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dispatch(
|
dispatch(
|
||||||
updateSettings({
|
updateSettings({
|
||||||
alertGroupsPerPage: value,
|
alertGroupsPerPage: value,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
</Stack>
|
||||||
</Fieldset>
|
</Fieldset>
|
||||||
<Fieldset p="md" legend="Rules page settings">
|
<Fieldset p="md" legend="Rules page settings">
|
||||||
<NumberInput
|
<NumberInput
|
||||||
|
|
Loading…
Reference in a new issue