1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 07:49:41 +02:00

feat(global): change the strategy used to determine if swarm mode is used

This commit is contained in:
Anthony Lapenna 2016-09-23 18:02:03 +12:00
parent fe63f9939a
commit e27282de3c
7 changed files with 7 additions and 7 deletions

View file

@ -166,7 +166,7 @@ function ($scope, $q, $state, $filter, Config, Info, Container, ContainerHelper,
Config.$promise.then(function (c) {
$scope.swarm = c.swarm;
Info.get({}, function(info) {
if ($scope.swarm && info.Swarm) {
if ($scope.swarm && !_.startsWith(info.ServerVersion, 'swarm')) {
$scope.swarm_mode = true;
}
});