aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSubView.tsx
diff options
context:
space:
mode:
authorGeireann Lindfield Roberts <60007097+geireann@users.noreply.github.com>2020-10-23 01:59:15 +0800
committerGeireann Lindfield Roberts <60007097+geireann@users.noreply.github.com>2020-10-23 01:59:15 +0800
commitac84d41faf25df288c55aab53a2e5c667ac00bcb (patch)
treefa35929f5706321a2c501acb908ba64551d689bd /src/client/views/collections/CollectionSubView.tsx
parente1d40c330c6981f04c745069d82fe24559af269c (diff)
parent040d65234f52dc3337483acdb2c1c6d0cc8fefa2 (diff)
Merge branch 'master' into presentation_v1
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
-rw-r--r--src/client/views/collections/CollectionSubView.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index 5c3c70be2..0dd033e47 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -482,6 +482,8 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?:
} else {
if (text && !text.includes("https://")) {
UndoManager.RunInBatch(() => this.addDocument(Docs.Create.TextDocument(text, { ...options, title: text.substring(0, 20), _width: 400, _height: 315 })), "drop");
+ } else {
+ alert("Document updloaded failed - possibly an unsupported file type.")
}
}
disposer();