diff options
| author | yipstanley <stanley_yip@brown.edu> | 2019-07-15 11:38:33 -0400 |
|---|---|---|
| committer | yipstanley <stanley_yip@brown.edu> | 2019-07-15 11:38:33 -0400 |
| commit | 10bca76f3dcddd0662d5e340753f725582e62319 (patch) | |
| tree | d88384aa619255502f3e5ec79d7361a311cbc9d3 /src/client/views/pdf/Page.tsx | |
| parent | e68ec039021022f8e8c55ff560db848066b81724 (diff) | |
pdfs now use linking
Diffstat (limited to 'src/client/views/pdf/Page.tsx')
| -rw-r--r-- | src/client/views/pdf/Page.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/pdf/Page.tsx b/src/client/views/pdf/Page.tsx index 3d8973414..c9d442fe5 100644 --- a/src/client/views/pdf/Page.tsx +++ b/src/client/views/pdf/Page.tsx @@ -176,6 +176,10 @@ export default class Page extends React.Component<IPageProps> { anno.target = targetDoc; }); } + let pdfDoc = await Cast(annotationDoc.pdfDoc, Doc); + if (pdfDoc) { + DocUtils.MakeLink(annotationDoc, targetDoc, undefined, `Annotation from ${StrCast(pdfDoc.title)}`, "", StrCast(pdfDoc.title)); + } } } }, |
