Skip to content

Commit

Permalink
Fetching summary when going to welcome tab without having summary yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesús Ángel committed Jul 26, 2018
1 parent 8c6d410 commit 7f95930
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/controllers/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ function ($scope, $location, $rootScope, appState,
$scope.switchSubtab = async (subtab, force = false, sameTab = true, preserveDiscover = false) => {
try {

if($scope.tab && $scope.tab === 'welcome' && typeof $scope.agentsCountTotal === 'undefined'){
await getSummary();
}

if ($scope.tabView === subtab && !force) return;

visFactoryService.clear()
Expand Down

0 comments on commit 7f95930

Please sign in to comment.