aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DragManager.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-04-24 09:56:59 -0400
committerbob <bcz@cs.brown.edu>2019-04-24 09:56:59 -0400
commitd2a95b1aa144e8dd4e87338525922dae1f3d9e67 (patch)
tree4fda48e270838626ca3c2c0edd1c9bdf7555d840 /src/client/util/DragManager.ts
parent04b177406a98a52f4f8b3f94375f94db2f46a5df (diff)
added blacklist to stop docs form linking to their parent collection. refactored drag threshold to Utils
Diffstat (limited to 'src/client/util/DragManager.ts')
-rw-r--r--src/client/util/DragManager.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts
index 465b97981..91b3ce616 100644
--- a/src/client/util/DragManager.ts
+++ b/src/client/util/DragManager.ts
@@ -158,11 +158,13 @@ export namespace DragManager {
}
export class LinkDragData {
- constructor(linkSourceDoc: Document) {
+ constructor(linkSourceDoc: Document, blacklist: Document[] = []) {
this.linkSourceDocument = linkSourceDoc;
+ this.blacklist = blacklist;
}
droppedDocuments: Document[] = [];
linkSourceDocument: Document;
+ blacklist: Document[];
[id: string]: any;
}