mirror of https://github.com/portainer/portainer
fix(stacks): prevent stack creation when container_name already exists (#5211)
parent
00fc629c1c
commit
592f7024e1
|
@ -232,8 +232,8 @@ angular
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$scope.containers = await ContainerService.containers();
|
const containers = await ContainerService.containers(true);
|
||||||
$scope.containerNames = ContainerHelper.getContainerNames($scope.containers);
|
$scope.containerNames = ContainerHelper.getContainerNames(containers);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
Notifications.error('Failure', err, 'Unable to retrieve Containers');
|
Notifications.error('Failure', err, 'Unable to retrieve Containers');
|
||||||
}
|
}
|
||||||
|
|
|
@ -291,7 +291,7 @@ angular.module('portainer.app').controller('StackController', [
|
||||||
$q.all({
|
$q.all({
|
||||||
stack: StackService.stack(id),
|
stack: StackService.stack(id),
|
||||||
groups: GroupService.groups(),
|
groups: GroupService.groups(),
|
||||||
containers: ContainerService.containers(),
|
containers: ContainerService.containers(true),
|
||||||
})
|
})
|
||||||
.then(function success(data) {
|
.then(function success(data) {
|
||||||
var stack = data.stack;
|
var stack = data.stack;
|
||||||
|
|
Loading…
Reference in New Issue