8000 fix: add/edit integration on pipeline (#4326) · ovh/cds@9a384e9 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 9a384e9

Browse files
sguiheuxyesnault
authored andcommitted
fix: add/edit integration on pipeline (#4326)
1 parent f7ae8be commit 9a384e9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ui/src/app/shared/workflow/wizard/context/wizard.context.component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line n 8000 umberDiff line change
@@ -29,6 +29,9 @@ export class WorkflowWizardNodeContextComponent implements OnInit {
2929
@Input('node') set node(data: WNode) {
3030
if (data) {
3131
this.editableNode = cloneDeep(data);
32+
if (this.editableNode.context.application_id !== 0 && this.applications) {
33+
this.change();
34+
}
3235
this.updateVCSStatusCheck();
3336
}
3437
};
@@ -63,6 +66,9 @@ export class WorkflowWizardNodeContextComponent implements OnInit {
6366
this.applications = cloneDeep(this.project.application_names) || [];
6467
this.applications.unshift(voidApp);
6568
this.updateVCSStatusCheck();
69+
if (this.editableNode.context.application_id !== 0) {
70+
this.change();
71+
}
6672
}
6773

6874
pushChange(): void {

ui/src/app/shared/workflow/wizard/context/wizard.context.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<div class="twelve wide field">
3131
<sui-select class="fluid selection"
3232
[(ngModel)]="node.context.application_id"
33-
(ngModelChange)="updateVCSStatusCheck(true)"
33+
(ngModelChange)="change()"
3434
[options]="applications"
3535
labelField="name"
3636
valueField="id"

0 commit comments

Comments
 (0)
0