2019-10-15 22:37:31 +02:00
|
|
|
/*
|
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
2021-02-04 03:12:39 +01:00
|
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
|
|
* 2.0.
|
2019-10-15 22:37:31 +02:00
|
|
|
*/
|
|
|
|
|
2020-04-15 12:22:37 +02:00
|
|
|
import { ChromeStart, DocLinksStart } from 'kibana/public';
|
2019-10-15 22:37:31 +02:00
|
|
|
|
2020-04-15 12:22:37 +02:00
|
|
|
export function addHelpMenuToAppChrome(chrome: ChromeStart, docLinks: DocLinksStart) {
|
2019-11-20 20:39:33 +01:00
|
|
|
chrome.setHelpExtension({
|
|
|
|
appName: 'Lens',
|
|
|
|
links: [
|
|
|
|
{
|
|
|
|
linkType: 'documentation',
|
2021-01-07 18:13:19 +01:00
|
|
|
href: docLinks.links.visualize.lensPanels,
|
2019-11-20 20:39:33 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
linkType: 'github',
|
|
|
|
title: '[Lens]',
|
|
|
|
labels: ['Feature:Lens'],
|
|
|
|
},
|
|
|
|
],
|
2019-10-15 22:37:31 +02:00
|
|
|
});
|
|
|
|
}
|