After adding a workflow spec, select it.

After deleting a workflow spec, select the master workflow spec.
This commit is contained in:
mike cullerton 2021-06-09 14:46:04 -04:00
parent f33a0e0e0e
commit 45bc5434d1
1 changed files with 4 additions and 1 deletions

View File

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