mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 18:05:20 +00:00
Add node_name option only if cluster is enabled
This commit is contained in:
parent
13d2cf6220
commit
cdde386c97
@ -156,12 +156,16 @@ export class AgentsPreviewController {
|
||||
this.searchBarModel = {
|
||||
status: ['Active', 'Disconnected', 'Never connected'],
|
||||
group: unique.groups,
|
||||
node_name: unique.nodes,
|
||||
version: unique.versions,
|
||||
'os.platform': unique.osPlatforms.map(x => x.platform),
|
||||
'os.version': unique.osPlatforms.map(x => x.version),
|
||||
'os.name': unique.osPlatforms.map(x => x.name)
|
||||
};
|
||||
|
||||
if(clusterInfo.status === 'enabled' && unique.nodes) {
|
||||
this.searchBarModel.node_name = unique.nodes;
|
||||
}
|
||||
|
||||
this.searchBarModel['os.name'] = Array.from(
|
||||
new Set(this.searchBarModel['os.name'])
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user