Skip to content

Commit

Permalink
Add tooltip to filter switch when there are no outdated agents
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianogorza committed Mar 22, 2024
1 parent fc1ac7f commit 16662a4
Show file tree
Hide file tree
Showing 6 changed files with 230 additions and 273 deletions.
Expand Up @@ -15,10 +15,6 @@ import React, { Component } from 'react';
import { EuiPage, EuiFlexItem, EuiSpacer } from '@elastic/eui';
import { AgentsTable } from './table/agents-table';
import WzReduxProvider from '../../redux/wz-redux-provider';
import { VisFactoryHandler } from '../../react-services/vis-factory-handler';
import { AppState } from '../../react-services/app-state';
import { FilterHandler } from '../../utils/filter-handler';
import { TabVisualizations } from '../../factories/tab-visualizations';
import { WazuhConfig } from '../../react-services/wazuh-config';
import {
withReduxProvider,
Expand Down Expand Up @@ -103,20 +99,6 @@ export const EndpointsSummary = compose(
async componentDidMount() {
this._isMount = true;
this.getOutdatedAgents();
if (this.wazuhConfig.getConfig()['wazuh.monitoring.enabled']) {
const tabVisualizations = new TabVisualizations();
tabVisualizations.removeAll();
tabVisualizations.setTab('general');
tabVisualizations.assign({
general: 1,
});
const filterHandler = new FilterHandler(AppState.getCurrentPattern());
await VisFactoryHandler.buildOverviewVisualizations(
filterHandler,
'general',
null,
);
}
}

componentWillUnmount() {
Expand Down

0 comments on commit 16662a4

Please sign in to comment.