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>
|
||||
<Fieldset p="md" legend="Alerts page settings">
|
||||
<Checkbox
|
||||
checked={showAnnotations}
|
||||
label="Show expanded annotations"
|
||||
onChange={(event) =>
|
||||
dispatch(
|
||||
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;
|
||||
<Stack>
|
||||
<Checkbox
|
||||
checked={showAnnotations}
|
||||
label="Show expanded annotations"
|
||||
onChange={(event) =>
|
||||
dispatch(
|
||||
updateSettings({
|
||||
showAnnotations: event.currentTarget.checked,
|
||||
})
|
||||
)
|
||||
}
|
||||
/>
|
||||
<NumberInput
|
||||
min={1}
|
||||
allowDecimal={false}
|
||||
label="Alert groups per page"
|
||||
value={alertGroupsPerPage}
|
||||
onChange={(value) => {
|
||||
if (typeof value !== "number") {
|
||||
return;
|
||||
}
|
||||
|
||||
dispatch(
|
||||
updateSettings({
|
||||
alertGroupsPerPage: value,
|
||||
})
|
||||
);
|
||||
}}
|
||||
/>
|
||||
dispatch(
|
||||
updateSettings({
|
||||
alertGroupsPerPage: value,
|
||||
})
|
||||
);
|
||||
}}
|
||||
/>
|
||||
</Stack>
|
||||
</Fieldset>
|
||||
<Fieldset p="md" legend="Rules page settings">
|
||||
<NumberInput
|
||||
|
|
Loading…
Reference in a new issue