aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/LinkDocPreview.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-11-04 12:43:59 -0400
committerbobzel <zzzman@gmail.com>2022-11-04 12:43:59 -0400
commitfe98c7d46df1852a74cd84dbe9ad010bfb3d5550 (patch)
treed1c96f67d824e98907fbe36697e0523d1af9b7bb /src/client/views/nodes/LinkDocPreview.tsx
parent770f546a38d7ec827bff55fd0dd64b873a112180 (diff)
more fixes to pdf and text to allow dashfieldview nodes to be link anchors and make sidebar annotations work better.
Diffstat (limited to 'src/client/views/nodes/LinkDocPreview.tsx')
-rw-r--r--src/client/views/nodes/LinkDocPreview.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/nodes/LinkDocPreview.tsx b/src/client/views/nodes/LinkDocPreview.tsx
index 27e79a83b..0e66214d1 100644
--- a/src/client/views/nodes/LinkDocPreview.tsx
+++ b/src/client/views/nodes/LinkDocPreview.tsx
@@ -26,6 +26,7 @@ interface LinkDocPreviewProps {
location: number[];
hrefs?: string[];
showHeader?: boolean;
+ noPreview?: boolean;
}
@observer
export class LinkDocPreview extends React.Component<LinkDocPreviewProps> {
@@ -111,6 +112,7 @@ export class LinkDocPreview extends React.Component<LinkDocPreviewProps> {
this._targetDoc = /*linkTarget?.type === DocumentType.MARKER &&*/ linkTarget?.annotationOn ? Cast(linkTarget.annotationOn, Doc, null) ?? linkTarget : linkTarget;
}
this._toolTipText = '';
+ if (LinkDocPreview.LinkInfo?.noPreview) this.followLink();
}
})
);