Merge pull request #103 from sartography/chore/last-category-469
Fixes #469 - Keep last Category Open
This commit is contained in:
commit
03d383a3d2
|
@ -99,7 +99,7 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
isSelected(cat: WorkflowSpecCategory) {
|
isSelected(cat: WorkflowSpecCategory) {
|
||||||
return this.selectedCat && this.selectedCat === cat;
|
return this.selectedCat && this.selectedCat.id === cat.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
selectSpec(selectedSpec?: WorkflowSpec) {
|
selectSpec(selectedSpec?: WorkflowSpec) {
|
||||||
|
@ -284,6 +284,7 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||||
this.workflowSpecs.forEach(ws => {
|
this.workflowSpecs.forEach(ws => {
|
||||||
if (selectedSpecName && selectedSpecName === ws.name) {
|
if (selectedSpecName && selectedSpecName === ws.name) {
|
||||||
this.selectedSpec = ws;
|
this.selectedSpec = ws;
|
||||||
|
this.selectedCat = this.selectedSpec.category;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue