Fixes #469 - Keep last Category Open

open up the category of the wfs you are on
This commit is contained in:
alicia pritchett 2021-09-22 10:22:51 -04:00
parent e5439a5680
commit 72e8b5d52a
1 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,7 @@ export class WorkflowSpecListComponent implements OnInit {
}
isSelected(cat: WorkflowSpecCategory) {
return this.selectedCat && this.selectedCat === cat;
return this.selectedCat && this.selectedCat.id === cat.id;
}
selectSpec(selectedSpec?: WorkflowSpec) {
@ -284,6 +284,7 @@ export class WorkflowSpecListComponent implements OnInit {
this.workflowSpecs.forEach(ws => {
if (selectedSpecName && selectedSpecName === ws.name) {
this.selectedSpec = ws;
this.selectedCat = this.selectedSpec.category;
}
});
} else {