Skip to content

Commit

Permalink
[Obs AI Assistant] Hardcode theme switch toggle for design QA on depl…
Browse files Browse the repository at this point in the history
…oyed environment
  • Loading branch information
viduni94 committed Nov 26, 2024
1 parent c95957b commit 4b2247a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export type ThemeTags = readonly ThemeTag[];
* An array of theme tags available in Kibana by default when not customized
* using KBN_OPTIMIZER_THEMES environment variable.
*/
export const DEFAULT_THEME_TAGS: ThemeTags = ThemeAmsterdamTags;
export const DEFAULT_THEME_TAGS: ThemeTags = SUPPORTED_THEME_TAGS; // TODO: (Viduni) remove after design QA on deployment
// export const DEFAULT_THEME_TAGS: ThemeTags = ThemeAmsterdamTags; // TODO: (Viduni) uncomment after design QA on deployment

export const FALLBACK_THEME_TAG: ThemeTag = 'v8light';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@ export const getThemeSettings = (
}),
},
value: 'amsterdam',
readonly: Object.hasOwn(options, 'isThemeSwitcherEnabled')
? !options.isThemeSwitcherEnabled
: true,
// TODO: (Viduni) Remove after design QA on deployment
// readonly: Object.hasOwn(options, 'isThemeSwitcherEnabled')
// ? !options.isThemeSwitcherEnabled
// : true,
requiresPageReload: true,
schema: schema.oneOf([
schema.literal('amsterdam'),
Expand Down

0 comments on commit 4b2247a

Please sign in to comment.