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

pull/7559/head
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
1 changed files with 1 additions and 1 deletions

View File

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