mirror of
https://github.com/portainer/portainer.git
synced 2025-07-30 18:59:41 +02:00
feat(global): change the strategy used to determine if swarm mode is used
This commit is contained in:
parent
fe63f9939a
commit
e27282de3c
7 changed files with 7 additions and 7 deletions
|
@ -15,7 +15,7 @@ function ($scope, $cookieStore, Settings, Config, Info) {
|
|||
Config.$promise.then(function (c) {
|
||||
$scope.swarm = c.swarm;
|
||||
Info.get({}, function(d) {
|
||||
if ($scope.swarm && d.Swarm) {
|
||||
if ($scope.swarm && !_.startsWith(d.ServerVersion, 'swarm')) {
|
||||
$scope.swarm_mode = true;
|
||||
$scope.swarm_manager = false;
|
||||
if (d.Swarm.ControlAvailable) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue