We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fa0148 commit 1f30906Copy full SHA for 1f30906
2 files changed
src/LaunchProteinView/index.ts
@@ -24,9 +24,12 @@ function extendStateModel(stateModel: IAnyModelType) {
24
contextMenuItems() {
25
const feature = self.contextMenuFeature
26
const track = getContainingTrack(self)
27
+ const showProteinMenuItem =
28
+ feature &&
29
+ ['gene', 'mRNA', 'transcript'].includes(feature.get('type'))
30
return [
31
...superContextMenuItems(),
- ...(feature
32
+ ...(showProteinMenuItem
33
? [
34
{
35
label: 'Launch protein view',
0 commit comments