Skip to content

Commit

Permalink
Merge pull request #3137 from GMOD/ideogram_menu_item
Browse files Browse the repository at this point in the history
Make ideogram menu item similar to others
  • Loading branch information
garrettjstevens committed Aug 17, 2022
2 parents fcbd761 + 05636c2 commit 58a9eff
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 58a9eff

Please sign in to comment.