1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

feat(stacks): remove the ability to delete external swarm stacks [EE-2611] (#7560)

This commit is contained in:
LP B 2022-09-05 15:00:49 +02:00 committed by GitHub
parent 326a8abdc7
commit 602e42739e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ angular.module('portainer.app').controller('StacksDatatableController', [
* Do not allow external items
*/
this.allowSelection = function (item) {
if (item.External && item.Type === 2) {
if (item.External) {
return false;
}