aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSubView.tsx
diff options
context:
space:
mode:
authorloudonclear <loudon_cohen@brown.edu>2019-06-07 18:14:39 -0400
committerloudonclear <loudon_cohen@brown.edu>2019-06-07 18:14:39 -0400
commit5d799d1a26fa12d666b11b80776151edcbbd67f8 (patch)
tree0f9b2387643367cc7e541c1d33957c6dc72a3ac3 /src/client/views/collections/CollectionSubView.tsx
parente96d0be82b19a4e108447ba5afc6cdc5deb07110 (diff)
some comments, switching computers
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
-rw-r--r--src/client/views/collections/CollectionSubView.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index be37efd3d..1ced6a426 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -107,6 +107,11 @@ export function CollectionSubView<T>(schemaCtor: (doc: Doc) => T) {
e.stopPropagation();
return added;
}
+ else if (de.data instanceof DragManager.AnnotationDragData) {
+ console.log("dropped!");
+ console.log(de.data);
+ return this.props.addDocument(de.data.dropDocument);
+ }
return false;
}