mirror of https://github.com/portainer/portainer
fix(stacks): orphaned stacks readonly [EE-4085] (#7552)
* fix(stacks): orphaned stacks readonly [EE-4085] * correctly handle stack type in controllerpull/7566/head
parent
e2789ab354
commit
27095ede22
|
@ -486,6 +486,8 @@ angular.module('portainer.app').controller('StackController', [
|
||||||
const orphanedRunning = $transition$.params().orphanedRunning == 'true';
|
const orphanedRunning = $transition$.params().orphanedRunning == 'true';
|
||||||
$scope.orphanedRunning = orphanedRunning;
|
$scope.orphanedRunning = orphanedRunning;
|
||||||
|
|
||||||
|
$scope.stackType = parseInt($transition$.params().type, 10);
|
||||||
|
|
||||||
if (external || (orphaned && orphanedRunning)) {
|
if (external || (orphaned && orphanedRunning)) {
|
||||||
loadExternalStack(stackName);
|
loadExternalStack(stackName);
|
||||||
}
|
}
|
||||||
|
@ -496,10 +498,6 @@ angular.module('portainer.app').controller('StackController', [
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.composeSyntaxMaxVersion = endpoint.ComposeSyntaxMaxVersion;
|
$scope.composeSyntaxMaxVersion = endpoint.ComposeSyntaxMaxVersion;
|
||||||
|
|
||||||
$scope.stackType = parseInt($transition$.params().type, 10);
|
|
||||||
|
|
||||||
$scope.editorReadOnly = !Authentication.hasAuthorizations(['PortainerStackUpdate']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
initView();
|
initView();
|
||||||
|
|
Loading…
Reference in New Issue