mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-02-14 09:26:54 +00:00
After adding a workflow spec, select it.
After deleting a workflow spec, select the master workflow spec.
This commit is contained in:
parent
f33a0e0e0e
commit
45bc5434d1
@ -181,7 +181,9 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||
dialogRef.afterClosed().subscribe((data: DeleteWorkflowSpecDialogData) => {
|
||||
if (data && data.confirm && data.workflowSpec) {
|
||||
this._deleteWorkflowSpec(data.workflowSpec);
|
||||
this.selectedSpec = this.masterStatusSpec;
|
||||
if (typeof this.masterStatusSpec !== 'undefined') {
|
||||
this.selectSpec(this.masterStatusSpec);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -269,6 +271,7 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||
|
||||
if (isNew) {
|
||||
this._addWorkflowSpec(newSpec);
|
||||
this.selectSpec(newSpec);
|
||||
} else {
|
||||
this._updateWorkflowSpec(data.id, newSpec);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user