Skip to content

Commit

Permalink
address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Jul 8, 2020
1 parent 5d0675d commit 8f37c18
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ setExtensionsService(services.extensionsService);
setUiMetricService(services.uiMetricService);
const appDependencies = {
services,
core: { getUrlForApp: () => {}, navigateToApp: () => {} },
core: { getUrlForApp: () => {} },
plugins: {},
} as any;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export interface AppDependencies {
core: {
fatalErrors: CoreStart['fatalErrors'];
getUrlForApp: CoreStart['application']['getUrlForApp'];
navigateToApp: CoreStart['application']['navigateToApp'];
};
plugins: {
usageCollection: UsageCollectionSetup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export async function mountManagementSection(
core: {
fatalErrors,
getUrlForApp: application.getUrlForApp,
navigateToApp: application.navigateToApp,
},
plugins: {
usageCollection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const TabSummary: React.FunctionComponent<Props> = ({ templateDetails })
const numIndexPatterns = indexPatterns.length;

const {
core: { navigateToApp },
core: { getUrlForApp },
} = useAppContext();

return (
Expand Down Expand Up @@ -159,9 +159,9 @@ export const TabSummary: React.FunctionComponent<Props> = ({ templateDetails })
<EuiDescriptionListDescription>
{ilmPolicy && ilmPolicy.name ? (
<EuiLink
onClick={() =>
navigateToApp('management', { path: getILMPolicyPath(ilmPolicy.name) })
}
href={getUrlForApp('management', {
path: getILMPolicyPath(ilmPolicy.name),
})}
>
{ilmPolicy.name}
</EuiLink>
Expand Down

0 comments on commit 8f37c18

Please sign in to comment.