-
Notifications
You must be signed in to change notification settings - Fork 909
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] Added documentation link for the dev tools' help menu (#5166)
* Add documentation link to dev tool's help menu Signed-off-by: Willie Hung <willie880201044@gmail.com> * Add CHANGELOG Signed-off-by: Willie Hung <willie880201044@gmail.com> * Edit CHANGELOG message Signed-off-by: Willie Hung <willie880201044@gmail.com> * Edit CHANGELOG message Signed-off-by: Willie Hung <willie880201044@gmail.com> * Changed new file copyright license Signed-off-by: Willie Hung <willie880201044@gmail.com> * Update new snapshots Signed-off-by: Willie Hung <willie880201044@gmail.com> --------- Signed-off-by: Willie Hung <willie880201044@gmail.com> Co-authored-by: Ashwin P Chandran <ashwinpc@amazon.com>
- Loading branch information
1 parent
7a964b6
commit 60f4c8f
Showing
6 changed files
with
41 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
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}`, | ||
}, | ||
], | ||
}); | ||
} |