Merge pull request #1288 from wazuh/filter-by-name

Add name filter tag
This commit is contained in:
Jesús Ángel 2019-03-05 12:10:29 +01:00 committed by GitHub
commit 8bdd9ec486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,6 +154,7 @@ export class AgentsPreviewController {
const unique = agentsUnique.data.result;
this.searchBarModel = {
name: [],
status: ['Active', 'Disconnected', 'Never connected'],
group: unique.groups,
version: unique.versions,
@ -175,7 +176,6 @@ export class AgentsPreviewController {
this.searchBarModel['os.platform'] = Array.from(
new Set(this.searchBarModel['os.platform'])
);
this.groups = unique.groups;
this.nodes = unique.nodes.map(item => ({ id: item }));
this.versions = unique.versions.map(item => ({ id: item }));