Call getClusterInfo instead getting from scope

This commit is contained in:
Jesús Ángel González 2017-12-18 13:00:00 +01:00
parent 642d1b3650
commit c7ccf4e47c

View File

@ -65,7 +65,7 @@ app.controller('agentsPreviewController', function ($scope,$rootScope, Notifier,
// tmpUrl y tmpUrl2
if (data[2].data.data === '') {
$scope.mostActiveAgent.name = $scope.cluster_info.manager;
$scope.mostActiveAgent.name = appState.getClusterInfo().manager;
$scope.mostActiveAgent.id = '000';
} else {
$scope.mostActiveAgent.name = data[2].data.data;