mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 18:05:20 +00:00
Calling checkMetrics with 'panels' param if we change to a different tab
This commit is contained in:
parent
008ccdf3f4
commit
2fd1d82a5d
@ -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){
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user