aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 935540af1..07a0c148e 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -23,6 +23,7 @@ import { ContextMenu } from "../ContextMenu";
import { DocumentContentsView } from "./DocumentContentsView";
import "./DocumentView.scss";
import React = require("react");
+import { PresentationView } from "../PresentationView";
export interface DocumentViewProps {
@@ -353,6 +354,10 @@ export class DocumentView extends React.Component<DocumentViewProps> {
// DocumentViews should stop propagation of this event
e.stopPropagation();
}
+ ContextMenu.Instance.addItem({
+ description: "Pin to Presentation",
+ event: () => PresentationView.Instance.PinDoc(this.props.Document)
+ });
ContextMenu.Instance.addItem({
description: "Delete",
@@ -444,4 +449,4 @@ export class DocumentView extends React.Component<DocumentViewProps> {
);
}
}
-}
+} \ No newline at end of file