diff options
| author | loudonclear <loudon_cohen@brown.edu> | 2019-06-07 18:14:39 -0400 |
|---|---|---|
| committer | loudonclear <loudon_cohen@brown.edu> | 2019-06-07 18:14:39 -0400 |
| commit | 5d799d1a26fa12d666b11b80776151edcbbd67f8 (patch) | |
| tree | 0f9b2387643367cc7e541c1d33957c6dc72a3ac3 /src/client/views/collections/CollectionSubView.tsx | |
| parent | e96d0be82b19a4e108447ba5afc6cdc5deb07110 (diff) | |
some comments, switching computers
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 5 |
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; } |
