Skip to content

Commit

Permalink
fix(ui): check if application exist on workflow component (#4951)
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjjj authored Feb 4, 2020
1 parent 44e1924 commit edab24a
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions ui/src/app/views/workflow/workflow.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
</a>
<ng-template let-popup #popupFromRepository>
<div class="content infoPopup">
<ng-container *ngIf="workflow && (workflow.from_repository || (workflow.as_code_events && workflow.as_code_events.length > 0))">
<ng-container
*ngIf="workflow && (workflow.from_repository || (workflow.as_code_events && workflow.as_code_events.length > 0))">
<app-ascode-event [events]="workflow.as_code_events" [repo]="workflow.from_repository"
[appName]="workflow.applications[workflow.workflow_data.node.context.application_id].name"
[project]="project"></app-ascode-event>
[appName]="workflow.applications[workflow.workflow_data.node.context.application_id].name"
[project]="project"></app-ascode-event>
</ng-container>
<ng-container
*ngIf="workflow && !workflow.from_repository && (!workflow.as_code_events || workflow.as_code_events.length === 0)">
Expand Down Expand Up @@ -108,10 +109,3 @@
</app-workflow-template-apply-modal>
</ng-container>
</section>
<ng-container *ngIf="workflow">
<app-update-ascode
[project]="project"
[appName]="workflow.applications[workflow.workflow_data.node.context.application_id].name"
[name]="workflow.name"
#updateAsCode></app-update-ascode>
</ng-container>

0 comments on commit edab24a

Please sign in to comment.