Merge pull request #85 from sartography/delete-workflow-spec-217

Problems deleting workflow spec #217
This commit is contained in:
Mike Cullerton 2021-06-30 11:34:34 -04:00 committed by GitHub
commit 61167fdcae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}