diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-14 22:22:37 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-08-14 22:22:37 -0400 |
| commit | 5ab3b1b20e4d483a0b3113739a6cb7ef88a9b03c (patch) | |
| tree | d59545a5150583208909ad638a1aa30f2afab4db /src/client/views/collections/CollectionSubView.tsx | |
| parent | 4e3ed774c9ac3d1365c67125ddc97df9de245f41 (diff) | |
fixed dragging aliases to remove _stayInColleciton flag. fixed warnings.
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index 3f2ad47a5..075be41fd 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -240,13 +240,13 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?: Doc.AreProtosEqual(Cast(movedDocs[0].annotationOn, Doc, null), this.props.Document); added = docDragData.moveDocument(movedDocs, this.props.Document, canAdd ? this.addDocument : returnFalse); } else added = res; - !added && alert("You don't have permission to perform this move"); e.stopPropagation(); } else { ScriptCast(this.props.Document.dropConverter)?.script.run({ dragData: docDragData }); added = this.addDocument(docDragData.droppedDocuments); } - added && e.stopPropagation(); + !added && alert("You cannot perform this move"); + e.stopPropagation(); return added; } else if (de.complete.annoDragData) { |
