Merge pull request #85 from sartography/delete-workflow-spec-217
Problems deleting workflow spec #217
This commit is contained in:
commit
61167fdcae
|
@ -181,7 +181,9 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||||
dialogRef.afterClosed().subscribe((data: DeleteWorkflowSpecDialogData) => {
|
dialogRef.afterClosed().subscribe((data: DeleteWorkflowSpecDialogData) => {
|
||||||
if (data && data.confirm && data.workflowSpec) {
|
if (data && data.confirm && data.workflowSpec) {
|
||||||
this._deleteWorkflowSpec(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) {
|
if (isNew) {
|
||||||
this._addWorkflowSpec(newSpec);
|
this._addWorkflowSpec(newSpec);
|
||||||
|
this.selectSpec(newSpec);
|
||||||
} else {
|
} else {
|
||||||
this._updateWorkflowSpec(data.id, newSpec);
|
this._updateWorkflowSpec(data.id, newSpec);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue