-
+
{value};
+ content = (
+
+ {value}
+
+ );
} else {
content = value;
}
diff --git a/x-pack/plugins/index_lifecycle_management/public/extend_index_management/index.js b/x-pack/plugins/index_lifecycle_management/public/extend_index_management/index.js
index 43f8332f4b6bd..e7afc8f12859c 100644
--- a/x-pack/plugins/index_lifecycle_management/public/extend_index_management/index.js
+++ b/x-pack/plugins/index_lifecycle_management/public/extend_index_management/index.js
@@ -67,7 +67,7 @@ export const removeLifecyclePolicyActionExtension = ({ indices, reloadIndices })
};
};
-export const addLifecyclePolicyActionExtension = ({ indices, reloadIndices }) => {
+export const addLifecyclePolicyActionExtension = ({ indices, reloadIndices, getUrlForApp }) => {
if (indices.length !== 1) {
return null;
}
@@ -86,6 +86,7 @@ export const addLifecyclePolicyActionExtension = ({ indices, reloadIndices }) =>
closeModal={closeModal}
index={index}
reloadIndices={reloadIndices}
+ getUrlForApp={getUrlForApp}
/>
);
},
@@ -123,8 +124,8 @@ export const ilmBannerExtension = (indices) => {
};
};
-export const ilmSummaryExtension = (index) => {
- return ;
+export const ilmSummaryExtension = (index, getUrlForApp) => {
+ return ;
};
export const ilmFilterExtension = (indices) => {
diff --git a/x-pack/plugins/index_lifecycle_management/public/plugin.tsx b/x-pack/plugins/index_lifecycle_management/public/plugin.tsx
index 3f8d7d7f88487..49856dee47fba 100644
--- a/x-pack/plugins/index_lifecycle_management/public/plugin.tsx
+++ b/x-pack/plugins/index_lifecycle_management/public/plugin.tsx
@@ -47,6 +47,7 @@ export class IndexLifecycleManagementPlugin {
const {
i18n: { Context: I18nContext },
docLinks: { ELASTIC_WEBSITE_URL, DOC_LINK_VERSION },
+ application: { navigateToApp },
} = coreStart;
// Initialize additional services.
@@ -55,7 +56,7 @@ export class IndexLifecycleManagementPlugin {
);
const { renderApp } = await import('./application');
- return renderApp(element, I18nContext, history);
+ return renderApp(element, I18nContext, history, navigateToApp);
},
});
diff --git a/x-pack/plugins/index_management/public/application/app_context.tsx b/x-pack/plugins/index_management/public/application/app_context.tsx
index ad934c18c18e3..84938de416941 100644
--- a/x-pack/plugins/index_management/public/application/app_context.tsx
+++ b/x-pack/plugins/index_management/public/application/app_context.tsx
@@ -18,6 +18,7 @@ const AppContext = createContext(undefined);
export interface AppDependencies {
core: {
fatalErrors: CoreStart['fatalErrors'];
+ getUrlForApp: CoreStart['application']['getUrlForApp'];
};
plugins: {
usageCollection: UsageCollectionSetup;
diff --git a/x-pack/plugins/index_management/public/application/mount_management_section.ts b/x-pack/plugins/index_management/public/application/mount_management_section.ts
index 5e8282fcdcdf8..e8b6f200fb349 100644
--- a/x-pack/plugins/index_management/public/application/mount_management_section.ts
+++ b/x-pack/plugins/index_management/public/application/mount_management_section.ts
@@ -32,7 +32,7 @@ export async function mountManagementSection(
) {
const { element, setBreadcrumbs, history } = params;
const [core] = await coreSetup.getStartServices();
- const { docLinks, fatalErrors } = core;
+ const { docLinks, fatalErrors, application } = core;
breadcrumbService.setup(setBreadcrumbs);
documentationService.setup(docLinks);
@@ -40,6 +40,7 @@ export async function mountManagementSection(
const appDependencies: AppDependencies = {
core: {
fatalErrors,
+ getUrlForApp: application.getUrlForApp,
},
plugins: {
usageCollection,
diff --git a/x-pack/plugins/index_management/public/application/sections/home/index_list/detail_panel/summary/summary.js b/x-pack/plugins/index_management/public/application/sections/home/index_list/detail_panel/summary/summary.js
index e49b3c353931e..2fda71035fb58 100644
--- a/x-pack/plugins/index_management/public/application/sections/home/index_list/detail_panel/summary/summary.js
+++ b/x-pack/plugins/index_management/public/application/sections/home/index_list/detail_panel/summary/summary.js
@@ -54,14 +54,14 @@ const getHeaders = () => {
};
export class Summary extends React.PureComponent {
- getAdditionalContent(extensionsService) {
+ getAdditionalContent(extensionsService, getUrlForApp) {
const { index } = this.props;
const extensions = extensionsService.summaries;
return extensions.map((summaryExtension, i) => {
return (
- {summaryExtension(index)}
+ {summaryExtension(index, getUrlForApp)}
);
});
@@ -103,9 +103,12 @@ export class Summary extends React.PureComponent {
render() {
return (
- {({ services }) => {
+ {({ services, core }) => {
const { left, right } = this.buildRows();
- const additionalContent = this.getAdditionalContent(services.extensionsService);
+ const additionalContent = this.getAdditionalContent(
+ services.extensionsService,
+ core.getUrlForApp
+ );
return (
diff --git a/x-pack/plugins/index_management/public/application/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.js b/x-pack/plugins/index_management/public/application/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.js
index effd80c39f0d1..1931884cf7306 100644
--- a/x-pack/plugins/index_management/public/application/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.js
+++ b/x-pack/plugins/index_management/public/application/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.js
@@ -46,7 +46,7 @@ export class IndexActionsContextMenu extends Component {
confirmAction = (isActionConfirmed) => {
this.setState({ isActionConfirmed });
};
- panels({ services: { extensionsService } }) {
+ panels({ services: { extensionsService }, core: { getUrlForApp } }) {
const {
closeIndices,
openIndices,
@@ -214,6 +214,7 @@ export class IndexActionsContextMenu extends Component {
const actionExtensionDefinition = actionExtension({
indices,
reloadIndices,
+ getUrlForApp,
});
if (actionExtensionDefinition) {
const {