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