aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorHannah Chow <hannah_chow@brown.edu>2019-03-10 22:43:35 -0400
committerHannah Chow <hannah_chow@brown.edu>2019-03-10 22:43:35 -0400
commit018d92a8a49e7e1a3a41ae87e24a9a8ba60619d6 (patch)
tree5a913a95fce74cafb0ba86034f0a001fdb5f52cb /src/client/views/DocumentDecorations.tsx
parent69d42193bf187a8a61e475a0587d55e29b644394 (diff)
almost done
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 22d34127d..8c3913232 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -184,6 +184,10 @@ export class DocumentDecorations extends React.Component {
document.removeEventListener("pointerup", this.onPointerUp);
}
}
+
+ changeFlyoutContent = (): void => {
+
+ }
// buttonOnPointerUp = (e: React.PointerEvent): void => {
// e.stopPropagation();
// }
@@ -203,7 +207,7 @@ export class DocumentDecorations extends React.Component {
linkButton = (<Flyout
anchorPoint={anchorPoints.RIGHT_TOP}
content={
- <LinkMenu docView={SelectionManager.SelectedDocuments()[0]}>
+ <LinkMenu docView={SelectionManager.SelectedDocuments()[0]} changeFlyout={this.changeFlyoutContent}>
</LinkMenu>
}>
<div id="linkButton" onPointerDown={this.onLinkButtonDown} ref={this._linkButton}></div>