mirror of https://github.com/portainer/portainer
fix(services): replicas count misunderstanding (#806)
parent
ac872b577a
commit
ca5c606dfc
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue