Calling checkMetrics with 'panels' param if we change to a different tab

This commit is contained in:
Jesús Ángel González 2018-03-07 09:55:51 +01:00 committed by Javier Castro
parent 008ccdf3f4
commit 2fd1d82a5d
2 changed files with 2 additions and 3 deletions

View File

@ -92,7 +92,7 @@ app.controller('agentsController',
if($scope.tab === tab) return;
checkMetrics(tab,$scope.tabView);
checkMetrics(tab,'panels');
if($rootScope.ownHandlers){
for(let h of $rootScope.ownHandlers){

View File

@ -114,8 +114,7 @@ app.controller('overviewController', function ($scope, $location, $rootScope, ap
// Switch tab
$scope.switchTab = tab => {
if ($scope.tab === tab) return;
checkMetrics(tab,$scope.tabView);
checkMetrics(tab,'panels');
if ($rootScope.ownHandlers) {
for (let h of $rootScope.ownHandlers) {