-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change track selector togglebutton to normal button #1442
Conversation
what if we added and the default implementation of it is |
Note that there is no BaseWidgetModel, so we can't assume isAssociatedWith is on the API necessarily unless we want to crash for this purpose, and so the expression that is used in many places in the code looks like
It is fairly cumbersome, but is a one liner that we can implement |
Refer to https://github.com/GMOD/jbrowse-components/compare/isassociatedwith for diff with master for this change |
Any thought on whether we could merge this PR as is? The alternative isAssociatedWith stuff isn't super elegant so codewise I basically prefer this unless it's desirable to keep the disabled state |
39e1db4
to
68786c1
Compare
Yep, fixes both |
The original screenshot here proposed having the literal text "Open track selector" visible in the header but I removed that for a little more brevity for now |
Codecov Report
@@ Coverage Diff @@
## master #1442 +/- ##
=======================================
Coverage 59.47% 59.48%
=======================================
Files 435 435
Lines 19547 19512 -35
Branches 4581 4552 -29
=======================================
- Hits 11625 11606 -19
+ Misses 7623 7607 -16
Partials 299 299
Continue to review full report at Codecov.
|
This code has been a tricky thing to maintain properly since it pokes deeply into the state of the drawerwidget, so I propose removing it. Alternatively we could refactor to extract this, but another area of the code (the "Select tracks" button) removed the toggle state already.
fixes #1411
fixes #1499