mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 18:28:55 +00:00
Merge branch '3.2' of https://github.com/wazuh/wazuh-kibana-app into 3.2
This commit is contained in:
commit
071eb3dddb
@ -88,6 +88,11 @@ app.factory('DataHandler', function ($q, apiReq,errorHandler) {
|
||||
this.items.push(items[i]);
|
||||
this.items[i].selected = false;
|
||||
}
|
||||
// Prevents from any manager
|
||||
if (this.path === '/agents') {
|
||||
const filteredAgents = this.items.filter(item => item && item.id !== '000');
|
||||
this.items = filteredAgents;
|
||||
}
|
||||
this.offset += items.length;
|
||||
if (this.offset >= this.totalItems) this.end = true;
|
||||
if (data.data.data !== 0){
|
||||
@ -212,7 +217,11 @@ app.factory('DataHandler', function ($q, apiReq,errorHandler) {
|
||||
const filteredRules = this.items.filter(item => item.id !== this.ruleID);
|
||||
this.items = filteredRules;
|
||||
}
|
||||
|
||||
// Prevents from any manager
|
||||
if (this.path === '/agents') {
|
||||
const filteredAgents = this.items.filter(item => item && item.id !== '000');
|
||||
this.items = filteredAgents;
|
||||
}
|
||||
this.offset = items.length;
|
||||
deferred.resolve(true);
|
||||
this.busy = false;
|
||||
|
Loading…
Reference in New Issue
Block a user