From 3a26d552c763119ddde0346a5a9aa77150666838 Mon Sep 17 00:00:00 2001 From: Tostti Date: Tue, 30 Jan 2024 08:57:39 -0300 Subject: [PATCH] Add version constant --- src/core/public/chrome/constants.ts | 2 ++ src/core/public/chrome/ui/header/header_help_menu.tsx | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/public/chrome/constants.ts b/src/core/public/chrome/constants.ts index 2fa80237566e..ec41dd0df1b9 100644 --- a/src/core/public/chrome/constants.ts +++ b/src/core/public/chrome/constants.ts @@ -28,6 +28,8 @@ * under the License. */ +export const WAZUH_VERSION = '4.9'; export const OPENSEARCH_DASHBOARDS_FEEDBACK_LINK = 'https://wazuh.com/community/join-us-on-slack'; export const OPENSEARCH_DASHBOARDS_ASK_OPENSEARCH_LINK = OPENSEARCH_DASHBOARDS_FEEDBACK_LINK; export const GITHUB_CREATE_ISSUE_LINK = 'https://github.com/wazuh/wazuh/issues/new/choose'; +export const WAZUH_DOCUMENTATION_URL = `https://documentation.wazuh.com/${WAZUH_VERSION}/`; diff --git a/src/core/public/chrome/ui/header/header_help_menu.tsx b/src/core/public/chrome/ui/header/header_help_menu.tsx index 10cbab9aaccb..44183dd64e56 100644 --- a/src/core/public/chrome/ui/header/header_help_menu.tsx +++ b/src/core/public/chrome/ui/header/header_help_menu.tsx @@ -50,6 +50,7 @@ import { ExclusiveUnion } from '@elastic/eui'; import { combineLatest } from 'rxjs'; import { HeaderExtension } from './header_extension'; import { ChromeHelpExtension } from '../../chrome_service'; +import { WAZUH_DOCUMENTATION_URL } from '../../constants'; /** @public */ export type ChromeHelpExtensionMenuGitHubLink = EuiButtonEmptyProps & { @@ -206,7 +207,7 @@ class HeaderHelpMenuUI extends Component { const defaultContent = useDefaultContent ? (