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:
parent
c7756f3018
commit
73950f3603
3 changed files with 16 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue