diff options
author | bobzel <zzzman@gmail.com> | 2020-09-28 13:34:06 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-28 13:34:06 -0400 |
commit | 9ff10d73a1690c59d596cd5eb8138595af052a30 (patch) | |
tree | d1c58bddabdc65af01e4d345b40cd6f9d79a142d | |
parent | 9d9e7593a0ece66d3538ea5986de3388a0759ad7 (diff) |
removed sidebar menu item. fixed contents of annotations to display annotation's info, not pdf's.
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 1 | ||||
-rw-r--r-- | src/client/views/pdf/Annotation.tsx | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 26902914a..e7b4b72f4 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -607,7 +607,6 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp const uicontrols: ContextMenuProps[] = []; - uicontrols.push({ description: `${this.layoutDoc._showSidebar ? "Hide" : "Show"} Sidebar`, event: () => this.layoutDoc._showSidebar = !this.layoutDoc._showSidebar, icon: "expand-arrows-alt" }); uicontrols.push({ description: `${this.layoutDoc._showAudio ? "Hide" : "Show"} Dictation Icon`, event: () => this.layoutDoc._showAudio = !this.layoutDoc._showAudio, icon: "expand-arrows-alt" }); uicontrols.push({ description: "Show Highlights...", noexpand: true, subitems: highlighting, icon: "hand-point-right" }); !Doc.UserDoc().noviceMode && uicontrols.push({ description: `Create TimeStamp When ${this.layoutDoc._timeStampOnEnter ? "Pause" : "Enter"}`, event: () => this.layoutDoc._timeStampOnEnter = !this.layoutDoc._timeStampOnEnter, icon: "expand-arrows-alt" }); diff --git a/src/client/views/pdf/Annotation.tsx b/src/client/views/pdf/Annotation.tsx index 33c7bd4f3..a1b6c0547 100644 --- a/src/client/views/pdf/Annotation.tsx +++ b/src/client/views/pdf/Annotation.tsx @@ -141,7 +141,7 @@ class RegionAnnotation extends React.Component<IRegionAnnotationProps> { backgroundColor: this._brushed ? "orange" : StrCast(this.props.document.backgroundColor), }} > {!this._showInfo ? (null) : <div className="pdfAnnotation-info"> - {this.props.dataDoc.author + " " + Field.toString(this.props.dataDoc.creationDate as Field)} + {this.props.anno.author + " " + Field.toString(this.props.anno.creationDate as Field)} </div>} </div>); } |