Browse Source

disable membrane UI

JonStargaryen 4 years ago
parent
commit
3fdce03c0a
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/viewer/index.ts
  2. 1 1
      src/viewer/ui/controls.tsx

+ 1 - 1
src/viewer/index.ts

@@ -64,7 +64,7 @@ const DefaultViewerProps = {
     showSessionControls: false,
     showStructureSourceControls: true,
     showSuperpositionControls: true,
-    showMembraneOrientationControls: true,
+    showMembraneOrientationControls: false,
     modelUrlProviders: [
         (pdbId: string) => ({
             url: `//models.rcsb.org/${pdbId.toLowerCase()}.bcif`,

+ 1 - 1
src/viewer/ui/controls.tsx

@@ -36,7 +36,7 @@ export class StructureTools extends PluginUIComponent {
             {this.customState.showSuperpositionControls && <StructureSuperpositionControls initiallyCollapsed={collapsed.superposition} />}
             <StructureComponentControls initiallyCollapsed={collapsed.component} />
             <VolumeStreamingControls header='Density' initiallyCollapsed={collapsed.volume} />
-            <MembraneOrientationControls initiallyCollapsed={collapsed.membrane} />
+            {this.customState.showMembraneOrientationControls && <MembraneOrientationControls initiallyCollapsed={collapsed.membrane} />}
             <CustomStructureControls initiallyCollapsed={collapsed.custom} />
         </>;
     }