Skip to content

Commit

Permalink
Fixed ILM policy link and added a check for index template name after…
Browse files Browse the repository at this point in the history
… navigation
  • Loading branch information
yuliacech committed Nov 12, 2020
1 parent 2d5baf1 commit fa87478
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ export type TestSubjects =
| 'templateList'
| 'templatesTab'
| 'templateTable'
| 'title'
| 'viewButton';
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ describe('Data Streams tab', () => {

component.update();
expect(find('summaryTab').exists()).toBeTruthy();
expect(find('title').text().trim()).toBe('indexTemplate');
});
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,7 @@ export const DataStreamDetailPanel: React.FunctionComponent<Props> = ({
}),
content:
ilmPolicyName && ilmPolicyLink ? (
<EuiLink
data-test-subj={'ilmPolicyLink'}
{...reactRouterNavigate(history, ilmPolicyLink)}
>
<EuiLink data-test-subj={'ilmPolicyLink'} href={ilmPolicyLink}>
{ilmPolicyName}
</EuiLink>
) : (
Expand Down

0 comments on commit fa87478

Please sign in to comment.