Skip to content

Commit

Permalink
feat(TSC): replace the dashboard on TSC application
Browse files Browse the repository at this point in the history
  • Loading branch information
Desvelao committed Mar 14, 2024
1 parent 4a9fe77 commit dfa2d19
Showing 1 changed file with 16 additions and 1 deletion.
Expand Up @@ -43,6 +43,7 @@ import { virustotalColumns } from '../../overview/virustotal/events/virustotal-c
import { malwareDetectionColumns } from '../../overview/malware-detection/events/malware-detection-columns';
import { WAZUH_VULNERABILITIES_PATTERN } from '../../../../common/constants';
import { withVulnerabilitiesStateDataSource } from '../../overview/vulnerabilities/common/hocs/validate-vulnerabilities-states-index-pattern';
import { DashboardTSC } from '../../overview/tsc/dashboards/dashboard';

const DashboardTab = {
id: 'dashboard',
Expand Down Expand Up @@ -290,7 +291,21 @@ export const ModulesDefaults = {
},
tsc: {
init: 'dashboard',
tabs: RegulatoryComplianceTabs(tscColumns),
tabs: [
{
id: 'dashboard',
name: 'Dashboard',
buttons: [ButtonModuleExploreAgent, ButtonModuleGenerateReport],
component: DashboardTSC || withPinnedAgent(DashboardTSC), // TODO: use withPinnedAgent
},
{
id: 'inventory',
name: 'Controls',
buttons: [ButtonModuleExploreAgent],
component: ComplianceTable,
},
renderDiscoverTab(DEFAULT_INDEX_PATTERN, tscColumns),
],
availableFor: ['manager', 'agent'],
},
syscollector: {
Expand Down

0 comments on commit dfa2d19

Please sign in to comment.