From 27b13643b383c7e8876a32ddd1faf490ca063b1a Mon Sep 17 00:00:00 2001 From: alicia pritchett Date: Thu, 17 Feb 2022 10:15:16 -0500 Subject: [PATCH] When you update a spec, stay on that same page/route --- src/app/workflow-spec-list/workflow-spec-list.component.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/workflow-spec-list/workflow-spec-list.component.ts b/src/app/workflow-spec-list/workflow-spec-list.component.ts index 8bfc0b5..ca6d045 100644 --- a/src/app/workflow-spec-list/workflow-spec-list.component.ts +++ b/src/app/workflow-spec-list/workflow-spec-list.component.ts @@ -287,7 +287,6 @@ export class WorkflowSpecListComponent implements OnInit { } private _loadWorkflowSpecs(selectedSpecName: string = null, searchSpecName: string = null) { - this.api.getWorkflowSpecList().subscribe(wfs => { this.workflowSpecs = wfs; // Populate categories with their specs @@ -374,8 +373,8 @@ export class WorkflowSpecListComponent implements OnInit { private _updateWorkflowSpec(specId: string, newSpec: WorkflowSpec) { this.api.updateWorkflowSpecification(specId, newSpec).subscribe(_ => { - this._loadWorkflowLibraries(); - this._loadWorkflowSpecs(); + this._loadWorkflowLibraries(newSpec.id); + this._loadWorkflowSpecs(newSpec.id); this._displayMessage('Saved changes to workflow spec.'); }); }