diff --git a/webapp/src/interfaces/types.ts b/webapp/src/interfaces/types.ts index b4f843e5..31a4e676 100644 --- a/webapp/src/interfaces/types.ts +++ b/webapp/src/interfaces/types.ts @@ -85,6 +85,7 @@ export interface GlycanDetailProps { controls: any; map: any; moorhenProps: any; + pdbCode: string; } export interface NoGlycansProps { diff --git a/webapp/src/main/GlycanDetail/GlycanDetail.tsx b/webapp/src/main/GlycanDetail/GlycanDetail.tsx index 39fc8532..2a435c9b 100644 --- a/webapp/src/main/GlycanDetail/GlycanDetail.tsx +++ b/webapp/src/main/GlycanDetail/GlycanDetail.tsx @@ -183,6 +183,7 @@ export default function GlycanDetail(props: GlycanDetailProps) { return [width, height]; }} toggleGlycoblocks={toggleGlycoBlocks} + pdbCode={props.pdbCode} />
[number, number]; mapContour: number; toggleGlycoblocks: () => any; + pdbCode: string; }) { const size = Math.min(800, 0.9 * window.innerWidth); const [dimensions, setDimensions] = useState>( @@ -44,7 +45,19 @@ export function GlycanDetailMoorhenView(props: {

Visualise with Moorhen{' '} - + + {e.stopPropagation()}} + onTouchStart={(e) => { + e.stopPropagation(); + }} + onMouseDown={(e) => { + e.stopPropagation(); + }} + target="_blank" + rel="noopener noreferrer" + >

diff --git a/webapp/src/main/PrivateerDisplay/SNFG.tsx b/webapp/src/main/PrivateerDisplay/SNFG.tsx index ac4d68b4..57dde424 100644 --- a/webapp/src/main/PrivateerDisplay/SNFG.tsx +++ b/webapp/src/main/PrivateerDisplay/SNFG.tsx @@ -220,6 +220,7 @@ export default function SNFG(props: SNFGProps): ReactElement { controls, map, moorhenProps: collectedProps, + pdbCode: props.PDBCode }; const svgTableProps = {