Skip to content

Commit

Permalink
Add version constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Tostti committed Jan 30, 2024
1 parent 18c3b79 commit 3a26d55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/core/public/chrome/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}/`;
3 changes: 2 additions & 1 deletion src/core/public/chrome/ui/header/header_help_menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 & {
Expand Down Expand Up @@ -206,7 +207,7 @@ class HeaderHelpMenuUI extends Component<Props, State> {
const defaultContent = useDefaultContent ? (
<Fragment>
<EuiButtonEmpty
href="https://documentation.wazuh.com/4.9/"
href={WAZUH_DOCUMENTATION_URL}
target="_blank"
size="xs"
flush="left"
Expand Down

0 comments on commit 3a26d55

Please sign in to comment.