diff options
author | bob <bcz@cs.brown.edu> | 2019-07-11 16:05:50 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-07-11 16:05:50 -0400 |
commit | 348cedb4db1426f4bac8f0ff4e136f329983f7c1 (patch) | |
tree | 3d6bbe3a0d4d0886ba5ee56efff88d220945962f /src/client/views/nodes/PDFBox.tsx | |
parent | 36992ca2388e2a6919ecf0b78f4731bc9aea8f86 (diff) | |
parent | b4350c48aee6474692330761f96f8d93bfd4b2da (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r-- | src/client/views/nodes/PDFBox.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index 2ff5c089f..771a1b5d6 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -230,6 +230,10 @@ export class PDFBox extends DocComponent<FieldViewProps, PdfDocument>(PdfDocumen } } + + @computed get fieldExtensionDoc() { + return Doc.resolvedFieldDataDoc(this.props.DataDoc ? this.props.DataDoc : this.props.Document, this.props.fieldKey, "true"); + } render() { // uses mozilla pdf as default const pdfUrl = Cast(this.props.Document.data, PdfField); |