diff --git a/ui/src/app/shared/workflow/node/hook/form/hook.form.html b/ui/src/app/shared/workflow/node/hook/form/hook.form.html index 642509a387..396201da74 100644 --- a/ui/src/app/shared/workflow/node/hook/form/hook.form.html +++ b/ui/src/app/shared/workflow/node/hook/form/hook.form.html @@ -35,7 +35,7 @@

{{ 'workflow_node_hook_form_config' | translate }}

- + {{ 'workflow_node_hook_form_config' | translate }} #textareaCodeMirror> - - - {{option.name}} - - - + + + {{option.name}} + + +
diff --git a/ui/src/app/views/pipeline/show/workflow/pipeline.workflow.component.ts b/ui/src/app/views/pipeline/show/workflow/pipeline.workflow.component.ts index c3f5b02d4a..1a3cb4f2d8 100644 --- a/ui/src/app/views/pipeline/show/workflow/pipeline.workflow.component.ts +++ b/ui/src/app/views/pipeline/show/workflow/pipeline.workflow.component.ts @@ -209,11 +209,13 @@ export class PipelineWorkflowComponent implements OnInit, OnDestroy { switch (event.type) { case 'update': - this._pipelineStore.updateJob(this.project.key, this.pipeline.name, this.selectedStage.id, job).subscribe(() => { + this._pipelineStore.updateJob(this.project.key, this.pipeline.name, this.selectedStage.id, job).subscribe((pip) => { this._toast.success('', this._translate.instant('stage_job_updated')); job.action.loading = false; job.action.hasChanged = false; - + this.pipeline = pip; + this.selectedStage = this.pipeline.stages.find((s) => this.selectedStage.id === s.id) || this.selectedStage; + this.selectedJob = this.selectedStage.jobs.find((j) => this.selectedJob.action.id === j.action.id) || this.selectedJob; }, () => { job.action.loading = false; });