File tree Expand file tree Collapse file tree
x-pack/plugins/data_usage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
1414 EuiListGroupItem ,
1515 EuiSpacer ,
1616} from '@elastic/eui' ;
17+ import { IndexManagementLocatorParams } from '@kbn/index-management-shared-types' ;
1718import { DatasetQualityLink } from './dataset_quality_link' ;
1819import { useKibanaContextForPlugin } from '../../utils/use_kibana' ;
1920
@@ -39,12 +40,11 @@ export const LegendAction: React.FC<LegendActionProps> = React.memo(
3940 const hasIndexManagementFeature = ! ! capabilities ?. index_management ;
4041
4142 const onClickIndexManagement = useCallback ( async ( ) => {
42- // TODO: use proper index management locator https://github.com/elastic/kibana/issues/195083
43- const dataQualityLocator = locators . get ( 'MANAGEMENT_APP_LOCATOR' ) ;
44- if ( dataQualityLocator ) {
45- await dataQualityLocator . navigate ( {
46- sectionId : 'data' ,
47- appId : `index_management/data_streams/${ label } ` ,
43+ const locator = locators . get < IndexManagementLocatorParams > ( 'INDEX_MANAGEMENT_LOCATOR_ID' ) ;
44+ if ( locator ) {
45+ await locator . navigate ( {
46+ page : 'data_streams_details' ,
47+ dataStreamName : label ,
4848 } ) ;
4949 }
5050 togglePopover ( null ) ; // Close the popover after action
Original file line number Diff line number Diff line change 2828 " @kbn/core-http-browser" ,
2929 " @kbn/core-chrome-browser" ,
3030 " @kbn/features-plugin" ,
31+ " @kbn/index-management-shared-types" ,
3132 ],
3233 "exclude" : [" target/**/*" ]
3334}
You can’t perform that action at this time.
0 commit comments