Skip to content

Commit

Permalink
fix(ui): fix add a trigger on a join (#3027)
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Coenen <benjamin.coenen@corp.ovh.com>
  • Loading branch information
bnjjj authored and sguiheux committed Jul 10, 2018
1 parent 6e06d15 commit f05a768
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Expand Up @@ -76,7 +76,13 @@ export class WorkflowTriggerJoinComponent {
}

nextStep() {
this.nodeWizard.goToNextSection().subscribe((section) => this.currentSection = section);
this.nodeWizard.goToNextSection().subscribe((section) => {
if (section === 'done') {
this.saveTrigger();
} else {
this.currentSection = section;
}
});
}

hide(): void {
Expand Down
Expand Up @@ -16,7 +16,6 @@ <h3>{{ 'workflow_node_form_title' | translate }}</h3>
</div>
<div class="actions">
<button class="ui grey button" [disabled]="loading" (click)="hide()">{{ 'common_close' | translate }}</button>
<button class="ui green button" [disabled]="loading || trigger.workflow_dest_node == null" *ngIf="currentSection !== 'environment'" [class.loading]="loading" (click)="nextStep()">{{ 'btn_next' | translate }}</button>
<button class="ui green button" *ngIf="currentSection === 'environment'" [disabled]="loading" [class.loading]="loading" (click)="saveTrigger()">{{ 'btn_finish' | translate }}</button>
<button class="ui green button" [disabled]="loading || trigger.workflow_dest_node == null" [class.loading]="loading" (click)="nextStep()">{{ 'btn_next' | translate }}</button>
</div>
</ng-template>

0 comments on commit f05a768

Please sign in to comment.