fix(services): replicas count misunderstanding (#806)

pull/838/head
Thomas Krzero 2017-04-25 10:37:38 +02:00 committed by Anthony Lapenna
parent ac872b577a
commit ca5c606dfc
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ function ($q, $scope, $stateParams, $state, Service, ServiceHelper, Notification
$scope.swarmManagerIP = NodeHelper.getManagerIP(data.nodes);
$scope.services = data.services.map(function (service) {
var serviceTasks = data.tasks.filter(function (task) {
return task.ServiceID === service.ID;
return task.ServiceID === service.ID && task.Status.State === "running";
});
var taskNodes = data.nodes.filter(function (node) {
return node.Spec.Availability === 'active' && node.Status.State === 'ready';