Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
fix linting
  • Loading branch information
saarikabhasi committed Feb 4, 2025
1 parent 2ce55e3 commit e47735c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/platform/plugins/shared/management/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ export class ManagementPlugin
});
}
});

// coreStart.chrome.setBreadcrumbs(trailingBreadcrumbs);
}
},
isSidebarEnabled$: managementPlugin.isSidebarEnabled$,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import React, { useEffect } from 'react';
import { RouteComponentProps } from 'react-router-dom';

import { ScopedHistory } from '@kbn/core/public';
import useObservable from 'react-use/lib/useObservable';
import { APP_WRAPPER_CLASS, useExecutionContext } from '../../../../shared_imports';
import { breadcrumbService, IndexManagementBreadcrumb } from '../../../services/breadcrumbs';
import { useAppContext } from '../../../app_context';
import { IndexTable } from './index_table';
import useObservable from 'react-use/lib/useObservable';

export const IndexList: React.FunctionComponent<RouteComponentProps> = ({ history }) => {
const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ export enum IndexManagementBreadcrumb {
enrichPoliciesCreate = 'enrichPoliciesCreate',

content = 'content',
indicesList ='indicesList'

indicesList = 'indicesList',
}

class BreadcrumbService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Section } from '../../../common/constants';
import type { IndexDetailsTabId } from '../../../common/constants';
import { ExtensionsService } from '../../services/extensions_service';
import { IndexDetailsSection } from '../../../common/constants';
import { breadcrumbService, IndexManagementBreadcrumb } from '../../application/services/breadcrumbs';
import { breadcrumbService, IndexManagementBreadcrumb } from './breadcrumbs';

export const getTemplateListLink = () => `/templates`;

Expand Down Expand Up @@ -109,7 +109,6 @@ export const navigateToIndexDetailsPage = (
} else {
const route = extensionsService.indexDetailsPageRoute.renderRoute(indexName, tabId);
application.navigateToUrl(http.basePath.prepend(route));
console.log("indexName", indexName)
breadcrumbService.setBreadcrumbs(IndexManagementBreadcrumb.indicesList, { text: indexName });
}
};

0 comments on commit e47735c

Please sign in to comment.