Skip to content

Commit

Permalink
fix(stack): hide containers for swarm stack [EE-3969] (#7503)
Browse files Browse the repository at this point in the history
  • Loading branch information
chiptus authored Aug 23, 2022
1 parent b91e06a commit 9fbc617
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/portainer/views/stacks/edit/stackController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

Expand Down

0 comments on commit 9fbc617

Please sign in to comment.