iossifovlab / gpfjs

MIT License
0 stars 0 forks source link

fix gene browser unique family checkbox disabling #1107

Closed IlinaGergova closed 1 month ago

IlinaGergova commented 1 month ago

Background

The logic that enables Unique family varinats checkbox was executing before getting the selected dataset id. Also the checkbox was enabled when there are no families.

Aim

To fix the issues

Implementation

Move enabling the checkbox in private async method enableUniqueFamilyVarinats() and call it in the subscribe of getDataset() and put it. Add checking if there are families in the template and if no families, the checkbox will be disabled.