mirror of
https://github.com/portainer/portainer.git
synced 2025-07-30 02:39:41 +02:00
refactor(project): remove Swarm standalone support (#1720)
* refactor(project): remove Swarm standalone support * fix(state): fix an issue with endpoint state not being registered
This commit is contained in:
parent
517f983ec6
commit
1cfbec557c
20 changed files with 59 additions and 313 deletions
|
@ -31,7 +31,7 @@ angular.module('portainer.docker')
|
|||
return deferred.promise;
|
||||
};
|
||||
|
||||
service.networks = function(localNetworks, swarmNetworks, swarmAttachableNetworks, globalNetworks) {
|
||||
service.networks = function(localNetworks, swarmNetworks, swarmAttachableNetworks) {
|
||||
var deferred = $q.defer();
|
||||
|
||||
Network.query({}).$promise
|
||||
|
@ -48,9 +48,6 @@ angular.module('portainer.docker')
|
|||
if (swarmAttachableNetworks && network.Scope === 'swarm' && network.Attachable === true) {
|
||||
return network;
|
||||
}
|
||||
if (globalNetworks && network.Scope === 'global') {
|
||||
return network;
|
||||
}
|
||||
}).map(function (item) {
|
||||
return new NetworkViewModel(item);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue