8000 fix(ui): check if application exist on workflow component (#4951) · ovh/cds@edab24a · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit edab24a

Browse files
authored
fix(ui): check if application exist on workflow component (#4951)
1 parent 44e1924 commit edab24a

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

ui/src/app/views/workflow/workflow.html

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
</a>
1717
<ng-template let-popup #popupFromRepository>
1818
<div class="content infoPopup">
19-
<ng-container *ngIf="workflow && (workflow.from_repository || (workflow.as_code_events && workflow.as_code_events.length > 0))">
19+
<ng-container
20+
*ngIf="workflow && (workflow.from_repository || (workflow.as_code_events && workflow.as_code_events.length > 0))">
2021
<app-ascode-event [events]="workflow.as_code_events" [repo]="workflow.from_repository"
21-
[appName]="workflow.applications[workflow.workflow_data.node.context.application_id].name"
22-
[project]="project"></app-ascode-event>
22+
[appName]="workflow.applications[workflow.workflow_data.node.context.application_id].name"
23+
[project]="project"></app-ascode-event>
2324
</ng-container>
2425
<ng-container
2526
*ngIf="workflow && !workflow.from_repository && (!workflow.as_code_events || workflow.as_code_events.length === 0)">
@@ -108,10 +109,3 @@
108109
</app-workflow-template-apply-modal>
109110
</ng-container>
110111
</section>
111-
<ng-container *ngIf="workflow">
112-
<app-update-ascode
113-
[project]="project"
114-
[appName]="workflow.applications[workflow.workflow_data.node.context.application_id].name"
115-
[name]="workflow.name"
116-
#updateAsCode></app-update-ascode>
117-
</ng-container>

0 commit comments

Comments
 (0)
0