fix(stack): hide containers for swarm stack [EE-3969] (#7503)

pull/7560/head
Chaim Lev-Ari 2022-08-23 09:46:55 +03:00 committed by GitHub
parent b91e06a60a
commit 9fbc6177a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -497,7 +497,8 @@ angular.module('portainer.app').controller('StackController', [
$scope.composeSyntaxMaxVersion = endpoint.ComposeSyntaxMaxVersion;
$scope.stackType = $transition$.params().type;
$scope.stackType = parseInt($transition$.params().type, 10);
$scope.editorReadOnly = !Authentication.hasAuthorizations(['PortainerStackUpdate']);
}