mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-01-26 08:38:50 +00:00
When you update a spec, stay on that same page/route
This commit is contained in:
parent
41293e8c54
commit
27b13643b3
@ -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.');
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user