diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-06-23 20:16:37 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-06-23 20:16:37 -0400 |
commit | f8aa68c04432aa8d04f46e0dbc95062eef7b89c3 (patch) | |
tree | 0d5a97695e7cf254dfd31b0e99d416ca455fc4f5 /src/client/views/nodes/DocumentView.tsx | |
parent | d020dddac3eeebf7e65afb7d5a6f6b7ee2096554 (diff) |
prevented links from being dropped on layout tabs
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 5d5460544..7e20b40a3 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -619,6 +619,10 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu @undoBatch @action drop = async (e: Event, de: DragManager.DropEvent) => { + if (this.props.Document === Doc.UserDoc().activeWorkspace) { + alert("linking to document tabs not yet supported. Drop link on document content."); + return; + } if (de.complete.annoDragData) { /// this whole section for handling PDF annotations looks weird. Need to rethink this to make it cleaner e.stopPropagation(); |