Skip to content

Commit

Permalink
Make ideogram menu item similar to others
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjstevens committed Aug 12, 2022
1 parent ad9bf14 commit 05636c2
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions plugins/linear-genome-view/src/LinearGenomeView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -774,12 +774,25 @@ export function stateModelFactory(pluginManager: PluginManager) {
onClick: self.toggleNoTracksActive,
},
{
label: 'Show gridlines',
label: 'Show guidelines',
icon: VisibilityIcon,
type: 'checkbox',
checked: self.showGridlines,
onClick: self.toggleShowGridlines,
},
...(canShowCytobands
? [
{
label: 'Show ideogram',
icon: VisibilityIcon,
type: 'checkbox' as const,
checked: self.showCytobands,
onClick: () => {
self.setShowCytobands(!showCytobands)
},
},
]
: []),
{
label: 'Track labels',
icon: LabelIcon,
Expand Down Expand Up @@ -807,16 +820,6 @@ export function stateModelFactory(pluginManager: PluginManager) {
},
],
},
...(canShowCytobands
? [
{
label: showCytobands ? 'Hide ideogram' : 'Show ideograms',
onClick: () => {
self.setShowCytobands(!showCytobands)
},
},
]
: []),
]

// add track's view level menu options
Expand Down

0 comments on commit 05636c2

Please sign in to comment.