mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Dashboard] Fix help documentation link for dashboard (#143894)
* Modify help link for dashboard * Fix stub
This commit is contained in:
parent
aa97bff4d4
commit
94fe0047f7
4 changed files with 8 additions and 5 deletions
|
@ -12,9 +12,8 @@ import { pluginServices } from '../../services/plugin_services';
|
|||
export function addHelpMenuToAppChrome() {
|
||||
const {
|
||||
chrome: { setHelpExtension },
|
||||
documentationLinks: { kibanaGuideDocLink },
|
||||
documentationLinks: { dashboardDocLink },
|
||||
} = pluginServices.getServices();
|
||||
|
||||
setHelpExtension({
|
||||
appName: i18n.translate('dashboard.helpMenu.appName', {
|
||||
defaultMessage: 'Dashboards',
|
||||
|
@ -22,7 +21,7 @@ export function addHelpMenuToAppChrome() {
|
|||
links: [
|
||||
{
|
||||
linkType: 'documentation',
|
||||
href: `${kibanaGuideDocLink}`,
|
||||
href: `${dashboardDocLink}`,
|
||||
},
|
||||
],
|
||||
});
|
||||
|
|
|
@ -18,5 +18,6 @@ export const documentationLinksServiceFactory: DocumentationLinksServiceFactory
|
|||
return {
|
||||
indexPatternsDocLink: corePluginMock.docLinks.links.indexPatterns.introduction,
|
||||
kibanaGuideDocLink: corePluginMock.docLinks.links.kibana.guide,
|
||||
dashboardDocLink: corePluginMock.docLinks.links.dashboard.guide,
|
||||
};
|
||||
};
|
||||
|
|
|
@ -21,14 +21,16 @@ export const documentationLinksServiceFactory: DocumentationLinksServiceFactory
|
|||
const {
|
||||
docLinks: {
|
||||
links: {
|
||||
kibana: { guide },
|
||||
kibana,
|
||||
indexPatterns: { introduction },
|
||||
dashboard,
|
||||
},
|
||||
},
|
||||
} = coreStart;
|
||||
|
||||
return {
|
||||
indexPatternsDocLink: introduction,
|
||||
kibanaGuideDocLink: guide,
|
||||
kibanaGuideDocLink: kibana.guide,
|
||||
dashboardDocLink: dashboard.guide,
|
||||
};
|
||||
};
|
||||
|
|
|
@ -11,4 +11,5 @@ import { CoreStart } from '@kbn/core/public';
|
|||
export interface DashboardDocumentationLinksService {
|
||||
indexPatternsDocLink: CoreStart['docLinks']['links']['indexPatterns']['introduction'];
|
||||
kibanaGuideDocLink: CoreStart['docLinks']['links']['kibana']['guide'];
|
||||
dashboardDocLink: CoreStart['docLinks']['links']['dashboard']['guide'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue