Skip to content

Commit

Permalink
CB-4685 disable default theme setting (temporary) (#2399)
Browse files Browse the repository at this point in the history
Co-authored-by: s.teleshev <[email protected]>
Co-authored-by: Evgenia Bezborodova <[email protected]>
  • Loading branch information
3 people authored Feb 21, 2024
1 parent 79aaf01 commit 379e0cb
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
*/
import { Dependency, injectable } from '@cloudbeaver/core-di';
import { ESettingsValueType, INTERFACE_SETTINGS_GROUP, SettingsManagerService } from '@cloudbeaver/core-plugin';
import { SettingsManagerService } from '@cloudbeaver/core-plugin';

import { ThemeService } from './ThemeService';
import { ThemeSettingsService } from './ThemeSettingsService';
Expand All @@ -16,14 +16,14 @@ export class ThemeSettingsManagementService extends Dependency {
constructor(themeSettingsService: ThemeSettingsService, themeService: ThemeService, settingsManagerService: SettingsManagerService) {
super();
settingsManagerService.registerSettings(themeSettingsService.settings, () => [
{
key: 'defaultTheme',
type: ESettingsValueType.Select,
name: 'core_theming_settings_default_theme_name',
description: 'core_theming_settings_default_theme_description',
options: themeService.themes.map(theme => ({ id: theme.id, name: theme.name })),
group: INTERFACE_SETTINGS_GROUP,
},
// {
// key: 'defaultTheme',
// type: ESettingsValueType.Select,
// name: 'core_theming_settings_default_theme_name',
// description: 'core_theming_settings_default_theme_description',
// options: themeService.themes.map(theme => ({ id: theme.id, name: theme.name })),
// group: INTERFACE_SETTINGS_GROUP,
// },
]);
}
}

0 comments on commit 379e0cb

Please sign in to comment.