mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 02:15:24 +00:00
Fix cluster.name filter
This commit is contained in:
parent
2c8a39e4c6
commit
1602011ef6
@ -106,10 +106,12 @@ app.controller('agentsController', function ($timeout, $scope, $location, $rootS
|
||||
try {
|
||||
filters = [];
|
||||
|
||||
const isCluster = appState.getClusterInfo().status == 'enabled';
|
||||
filters.push(filterHandler.managerQuery(
|
||||
appState.getClusterInfo().status == 'enabled' ?
|
||||
isCluster ?
|
||||
appState.getClusterInfo().cluster :
|
||||
appState.getClusterInfo().manager
|
||||
appState.getClusterInfo().manager,
|
||||
isCluster
|
||||
))
|
||||
|
||||
if(tab !== 'general'){
|
||||
|
@ -131,11 +131,12 @@ app.controller('overviewController', function ($timeout, $scope, $location, $roo
|
||||
try{
|
||||
|
||||
filters = [];
|
||||
|
||||
const isCluster = appState.getClusterInfo().status == 'enabled';
|
||||
filters.push(filterHandler.managerQuery(
|
||||
appState.getClusterInfo().status == 'enabled' ?
|
||||
isCluster ?
|
||||
appState.getClusterInfo().cluster :
|
||||
appState.getClusterInfo().manager
|
||||
appState.getClusterInfo().manager,
|
||||
isCluster
|
||||
))
|
||||
|
||||
if(tab !== 'general'){
|
||||
|
Loading…
Reference in New Issue
Block a user