1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 04:15:28 +02:00

fix(app/stacks): swarm stack duplicate and migrate errors [EE-5520] (#9039)

* fix(dev): dev container script

* fix(app/stacks): make swarm stack migrate effectively target the target env and not the current env

* fix(app/stacks): make stack duplicate save the target swarm id on duplicated swarm stack
This commit is contained in:
LP B 2023-06-07 14:28:40 +02:00 committed by GitHub
parent c7756f3018
commit 73950f3603
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 17 deletions

View file

@ -7,10 +7,10 @@ angular.module('portainer.docker').factory('SwarmService', [
'use strict';
var service = {};
service.swarm = function () {
service.swarm = function (endpointId) {
var deferred = $q.defer();
Swarm.get()
Swarm.get(endpointId ? { endpointId } : undefined)
.$promise.then(function success(data) {
var swarm = new SwarmViewModel(data);
deferred.resolve(swarm);