Skip to content

Commit

Permalink
[Purify] hide option for theme version in settings
Browse files Browse the repository at this point in the history
There is currently to a PR to remove the v7 and v8 (beta) theme
versions within the application but it is getting stale:
opensearch-project#978

Since the v8 (beta) theme isn't actually planned and has the incorrect
version, we do not want end users to be able to change this setting.
In the essence of time, this will prevent this setting from showing in
the Advanced Settings page but will also not break users who set this
version already (however it will lock them into theme until they switched
by manually updating or deleting the config doc). Removing this setting
will force the default to be v8 (beta).

Temporary fix for:
opensearch-project#494

But it should be removed completely.

Signed-off-by: Kawika Avilla <[email protected]>
  • Loading branch information
kavilla committed May 18, 2022
1 parent c74c1f5 commit 83ea474
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/server/ui_settings/settings/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const getThemeSettings = (): Record<string, UiSettingsParams> => {
}),
requiresPageReload: true,
schema: schema.oneOf([schema.literal('v7'), schema.literal('v8 (beta)')]),
readonly: true,
},
};
};

0 comments on commit 83ea474

Please sign in to comment.