-
Notifications
You must be signed in to change notification settings - Fork 947
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…5302) * Add documentation link to dev tool's help menu Signed-off-by: Willie Hung <[email protected]> * Add CHANGELOG Signed-off-by: Willie Hung <[email protected]> * Edit CHANGELOG message Signed-off-by: Willie Hung <[email protected]> * Edit CHANGELOG message Signed-off-by: Willie Hung <[email protected]> * Changed new file copyright license Signed-off-by: Willie Hung <[email protected]> * Update new snapshots Signed-off-by: Willie Hung <[email protected]> --------- Signed-off-by: Willie Hung <[email protected]> Co-authored-by: Ashwin P Chandran <[email protected]> (cherry picked from commit 60f4c8f) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ea0e856
commit 9098e4b
Showing
5 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...ic/application/components/dashboard_listing/__snapshots__/dashboard_listing.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...ic/application/components/dashboard_top_nav/__snapshots__/dashboard_top_nav.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { i18n } from '@osd/i18n'; | ||
import { CoreStart } from 'opensearch-dashboards/public'; | ||
|
||
export function addHelpMenuToAppChrome( | ||
chrome: CoreStart['chrome'], | ||
docLinks: CoreStart['docLinks'] | ||
) { | ||
chrome.setHelpExtension({ | ||
appName: i18n.translate('devTools.helpMenu.appName', { | ||
defaultMessage: 'Dev Tools', | ||
}), | ||
links: [ | ||
{ | ||
linkType: 'documentation', | ||
href: `${docLinks.links.opensearchDashboards.devTools}`, | ||
}, | ||
], | ||
}); | ||
} |