Skip to content

Commit

Permalink
Only use summary score mode if hasResolution capability is enabled on…
Browse files Browse the repository at this point in the history
… adapter
  • Loading branch information
cmdcolin committed Mar 4, 2021
1 parent 433b712 commit 0829b59
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions plugins/wiggle/src/LinearWiggleDisplay/models/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,15 @@ const stateModelFactory = (
},
],
},
{
label: 'Summary score mode',
subMenu: ['min', 'max', 'avg', 'whiskers'].map(elt => {
return {
label: elt,
onClick: () => self.setSummaryScoreMode(elt),
}
}),
},
]
: []),
...(self.canHaveFill
Expand Down Expand Up @@ -385,15 +394,7 @@ const stateModelFactory = (
self.toggleCrossHatches()
},
},
{
label: 'Summary score mode',
subMenu: ['min', 'max', 'avg', 'whiskers'].map(elt => {
return {
label: elt,
onClick: () => self.setSummaryScoreMode(elt),
}
}),
},

...(getConf(self, 'renderers').length > 1
? [
{
Expand Down

0 comments on commit 0829b59

Please sign in to comment.