Skip to content

Commit

Permalink
Remove global breadcrumb from MainModuleAgent component
Browse files Browse the repository at this point in the history
  • Loading branch information
guidomodarelli committed Oct 17, 2024
1 parent c9843b2 commit adb1517
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions plugins/main/public/components/common/modules/main-agent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,41 +185,6 @@ export class MainModuleAgent extends Component {
}
}

export default compose(
withGlobalBreadcrumb(({ agent, section }) => {
if (section === 'welcome') {
return [
{
text: endpointSummary.breadcrumbLabel,
href: NavigationService.getInstance().getUrlForApp(
endpointSummary.id,
{
path: `#/agents-preview`,
},
),
},
{ text: agent.id },
];
} else {
return [
{
text: endpointSummary.breadcrumbLabel,
href: NavigationService.getInstance().getUrlForApp(
endpointSummary.id,
{
path: `#/agents-preview`,
},
),
},
{ agent: agent },
{
text: WAZUH_MODULES[section].title,
},
];
}
}),
)(MainModuleAgent);

export class AgentInventoryDataSource extends AlertsDataSource {
constructor(id: string, title: string) {
super(id, title);
Expand Down

0 comments on commit adb1517

Please sign in to comment.