feat(stacks): hide redeploy for orphaned stacks [EE-5784] (#10841)

pull/10979/head
Chaim Lev-Ari 2024-01-17 21:45:08 +07:00 committed by GitHub
parent a58b4f479b
commit a305fe9e4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 21 additions and 18 deletions

View File

@ -109,24 +109,27 @@
</form> </form>
</div> </div>
<!-- !associate --> <!-- !associate -->
<stack-redeploy-git-form
ng-if="stack.GitConfig && !stack.FromAppTemplate && !state.actionInProgress" <div ng-if="!orphaned">
model="stack.GitConfig" <stack-redeploy-git-form
stack="stack" ng-if="stack.GitConfig && !stack.FromAppTemplate && !state.actionInProgress"
authorization="PortainerStackUpdate" model="stack.GitConfig"
endpoint="applicationState.endpoint" stack="stack"
> authorization="PortainerStackUpdate"
</stack-redeploy-git-form> endpoint="applicationState.endpoint"
<stack-duplication-form >
ng-if="regular && endpoints.length > 0" </stack-redeploy-git-form>
endpoints="endpoints" <stack-duplication-form
groups="groups" ng-if="regular && endpoints.length > 0"
current-endpoint-id="endpoint.Id" endpoints="endpoints"
on-duplicate="duplicateStack(name, endpointId)" groups="groups"
on-migrate="migrateStack(name, endpointId)" current-endpoint-id="endpoint.Id"
yaml-error="state.yamlError" on-duplicate="duplicateStack(name, endpointId)"
> on-migrate="migrateStack(name, endpointId)"
</stack-duplication-form> yaml-error="state.yamlError"
>
</stack-duplication-form>
</div>
</div> </div>
</uib-tab> </uib-tab>
<!-- !tab-info --> <!-- !tab-info -->