[reporting] implement k7Breadcrumbs (#26724)

## Summary

This PR updates the reporting routes to provide k7Breadcrumbs used by the new header navigation. See #25884 for general information about the integration with the router and #25689 for the breadcrumb taxonomy

![image](https://user-images.githubusercontent.com/1329312/49533708-9127ce80-f874-11e8-8f60-ad76f4caafcd.png)

### Checklist

- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
This commit is contained in:
Spencer 2018-12-05 21:17:51 -08:00 committed by GitHub
parent 502f1b19c7
commit 425c8d515b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,12 +12,22 @@ import routes from 'ui/routes';
import template from 'plugins/reporting/views/management/jobs.html';
import { ReportListing } from '../../components/report_listing';
import { i18n } from '@kbn/i18n';
import { I18nProvider } from '@kbn/i18n/react';
import { MANAGEMENT_BREADCRUMB } from 'ui/management';
const REACT_ANCHOR_DOM_ELEMENT_ID = 'reportListingAnchor';
routes.when('/management/kibana/reporting', {
template,
k7Breadcrumbs: () => [
MANAGEMENT_BREADCRUMB,
{
text: i18n.translate('xpack.reporting.breadcrumb', {
defaultMessage: 'Reporting'
})
}
],
controllerAs: 'jobsCtrl',
controller($scope, kbnUrl, Private) {
const xpackInfo = Private(XPackInfoProvider);