mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(stack): prevent stack duplication if name already used (#4740)
* feat(stack): prevent stack duplication if name already used * refacto(stack): deduplicate functions and rename variables * refacto(stack): add a generic helper for findDeepAll function * fix(templates): remove forgotten conflict markers
This commit is contained in:
parent
f03cf2a6e4
commit
36fcbb9e18
10 changed files with 109 additions and 8 deletions
|
@ -259,6 +259,10 @@ angular.module('portainer.docker').factory('ContainerHelper', [
|
|||
return bindings;
|
||||
};
|
||||
|
||||
helper.getContainerNames = function (containers) {
|
||||
return _.map(_.flatten(_.map(containers, 'Names')), (name) => _.trimStart(name, '/'));
|
||||
};
|
||||
|
||||
return helper;
|
||||
},
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue