|
|
@ -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();
|
|
|
|