When you update a spec, stay on that same page/route

This commit is contained in:
alicia pritchett 2022-02-17 10:15:16 -05:00
parent 41293e8c54
commit 27b13643b3

View File

@ -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.');
});
}