Skip to content

Commit

Permalink
Update theme compatibility to use 'wazuh' instead of 'v8', ensuring p…
Browse files Browse the repository at this point in the history
…roper theme version handling in settings configuration
  • Loading branch information
guidomodarelli committed Dec 24, 2024
1 parent 6d4f89a commit 244de9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/server/ui_settings/settings/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ import type { Type } from '@osd/config-schema';
import { UiSettingsParams } from '../../../types';
import { DEFAULT_THEME_VERSION } from '../ui_settings_config';

// Setup theme options to be backwards compatible with the fact that v8 was persisted with its
// Setup theme options to be backwards compatible with the fact that `wazuh` was persisted with its
// label rather than with the correct themeVersion value
const THEME_VERSIONS = Object.keys(themeVersionLabelMap);
const THEME_SCHEMA_VALUES = THEME_VERSIONS.concat(themeVersionLabelMap.v8);
const THEME_OPTIONS = THEME_VERSIONS.map((v) => (v !== 'v8' ? v : themeVersionLabelMap.v8));
const THEME_SCHEMA_VALUES = THEME_VERSIONS.concat(themeVersionLabelMap.wazuh);
const THEME_OPTIONS = THEME_VERSIONS.map((v) => (v !== 'wazuh' ? v : themeVersionLabelMap.wazuh));

export const getThemeSettings = (): Record<string, UiSettingsParams> => {
return {
Expand Down

0 comments on commit 244de9d

Please sign in to comment.