diff options
author | bobzel <zzzman@gmail.com> | 2019-07-11 15:48:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-11 15:48:19 -0400 |
commit | b4350c48aee6474692330761f96f8d93bfd4b2da (patch) | |
tree | 2e5048b21a3360faeaf74b6609b58083f496cd88 /src/client/views/nodes/PDFBox.tsx | |
parent | 7006f67b7cf15734fb0b63d917ae392758704f75 (diff) | |
parent | 1b203afbd297f8ae9400a47c9379df912f9ef3b5 (diff) |
Merge pull request #201 from browngraphicslab/extensionFields
Extension fields
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); |