Skip to content

Commit

Permalink
fix: move inverted disk space setting to general page (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemmufazalov authored Nov 16, 2023
1 parent c2f0d74 commit b09345e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/containers/UserSettings/i18n/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"page.general": "General",
"section.general": "General",
"section.appearance": "Appearance",

"page.experiments": "Experiments",
"section.experiments": "Experiments",
Expand Down
2 changes: 1 addition & 1 deletion src/containers/UserSettings/i18n/ru.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"page.general": "Общие",
"section.general": "Общие",
"section.appearance": "Внешний вид",

"page.experiments": "Эксперименты",
"section.experiments": "Эксперименты",
Expand Down
11 changes: 5 additions & 6 deletions src/containers/UserSettings/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,15 @@ export const enableNewTenantDiagnosticsDesign: SettingProps = {
helpPopoverContent: i18n('settings.tenantDiagnostics.popover'),
};

export const generalSection: SettingsSection = {
id: 'generalSection',
title: i18n('section.general'),
settings: [themeSetting],
export const appearanceSection: SettingsSection = {
id: 'appearanceSection',
title: i18n('section.appearance'),
settings: [themeSetting, invertedDisksSetting],
};
export const experimentsSection: SettingsSection = {
id: 'experimentsSection',
title: i18n('section.experiments'),
settings: [
invertedDisksSetting,
useNodesEndpointSetting,
useBackendParamsForTables,
enableQueryModesForExplainSetting,
Expand All @@ -122,7 +121,7 @@ export const generalPage: SettingsPage = {
id: 'generalPage',
title: i18n('page.general'),
icon: {data: favoriteFilledIcon, height: 14, width: 14},
sections: [generalSection],
sections: [appearanceSection],
};
export const experimentsPage: SettingsPage = {
id: 'experimentsPage',
Expand Down

0 comments on commit b09345e

Please sign in to comment.