aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/presentationview/PresentationView.tsx
diff options
context:
space:
mode:
authorMohammad Amoush <mohammad_amoush@brown.edu>2019-07-02 16:58:43 -0400
committerMohammad Amoush <mohammad_amoush@brown.edu>2019-07-02 16:58:43 -0400
commit66e4851757894dcb43fb9baada0fa21fbd43164a (patch)
treefb1b4a57c4061247efc44b481bc70b97e5b3d7df /src/client/views/presentationview/PresentationView.tsx
parentbcd8589f9319221dceb23f5c1aad35fd6373194b (diff)
Some dragging implemented. Like dragging from pres to workspace
Diffstat (limited to 'src/client/views/presentationview/PresentationView.tsx')
-rw-r--r--src/client/views/presentationview/PresentationView.tsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client/views/presentationview/PresentationView.tsx b/src/client/views/presentationview/PresentationView.tsx
index 20d0e113a..cdd059cab 100644
--- a/src/client/views/presentationview/PresentationView.tsx
+++ b/src/client/views/presentationview/PresentationView.tsx
@@ -447,6 +447,15 @@ export class PresentationView extends React.Component<PresViewProps> {
}
}
+ public removeDocByRef = (doc: Doc) => {
+ let indexOfDoc = this.childrenDocs.indexOf(doc);
+ this.RemoveDoc(indexOfDoc);
+ if (indexOfDoc !== - 1) {
+ return true;
+ }
+ return false;
+ }
+
//The function that is called when a document is clicked or reached through next or back.
//it'll also execute the necessary actions if presentation is playing.
@action
@@ -786,6 +795,7 @@ export class PresentationView extends React.Component<PresViewProps> {
presStatus={this.presStatus}
presButtonBackUp={this.presButtonBackUp}
presGroupBackUp={this.presGroupBackUp}
+ removeDocByRef={this.removeDocByRef}
/>
</div>
);