Fix cluster.name filter

This commit is contained in:
Jesús Ángel González 2018-05-18 09:08:43 +02:00 committed by Jesús Ángel
parent 2c8a39e4c6
commit 1602011ef6
2 changed files with 8 additions and 5 deletions

View File

@ -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'){

View File

@ -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'){