mirror of
https://github.com/prymitive/karma
synced 2026-05-21 04:33:07 +00:00
committed by
Łukasz Mierzwa
parent
8d41c67681
commit
ce4a9c3e67
@@ -24,6 +24,7 @@ const AlertGroupCollapseConfiguration: FC<{
|
||||
return {
|
||||
label: settingsStore.alertGroupConfig.options[val].label,
|
||||
value: val,
|
||||
wasCreated: false,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -30,7 +30,11 @@ const AlertGroupSortConfiguration: FC<{
|
||||
};
|
||||
|
||||
const valueToOption = (val: SortOrderT): OptionT => {
|
||||
return { label: settingsStore.gridConfig.options[val].label, value: val };
|
||||
return {
|
||||
label: settingsStore.gridConfig.options[val].label,
|
||||
value: val,
|
||||
wasCreated: false,
|
||||
};
|
||||
};
|
||||
|
||||
const hideReverse =
|
||||
|
||||
@@ -14,14 +14,15 @@ const disabledLabel = "Disable multi-grid";
|
||||
const valueToOption = (v: string) => ({
|
||||
label: v ? v : disabledLabel,
|
||||
value: v,
|
||||
wasCreated: false,
|
||||
});
|
||||
|
||||
const staticValues = [
|
||||
{ label: disabledLabel, value: "" },
|
||||
{ label: "Automatic selection", value: "@auto" },
|
||||
{ label: "@alertmanager", value: "@alertmanager" },
|
||||
{ label: "@cluster", value: "@cluster" },
|
||||
{ label: "@receiver", value: "@receiver" },
|
||||
{ label: disabledLabel, value: "", wasCreated: false },
|
||||
{ label: "Automatic selection", value: "@auto", wasCreated: false },
|
||||
{ label: "@alertmanager", value: "@alertmanager", wasCreated: false },
|
||||
{ label: "@cluster", value: "@cluster", wasCreated: false },
|
||||
{ label: "@receiver", value: "@receiver", wasCreated: false },
|
||||
];
|
||||
|
||||
const GridLabelName: FC<{
|
||||
@@ -35,7 +36,7 @@ const GridLabelName: FC<{
|
||||
|
||||
const defaultValue =
|
||||
settingsStore.multiGridConfig.config.gridLabel === "@auto"
|
||||
? { label: "Automatic selection", value: "@auto" }
|
||||
? { label: "Automatic selection", value: "@auto", wasCreated: false }
|
||||
: valueToOption(settingsStore.multiGridConfig.config.gridLabel);
|
||||
|
||||
return (
|
||||
|
||||
@@ -24,6 +24,7 @@ const ThemeConfiguration: FC<{
|
||||
return {
|
||||
label: settingsStore.themeConfig.options[val].label,
|
||||
value: val,
|
||||
wasCreated: false,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user