Working share link loading (plenty of restrictions still to put in place)

This commit is contained in:
Tom Moor
2018-05-16 23:52:26 -07:00
parent 4266020315
commit 187c2dcb27
4 changed files with 33 additions and 38 deletions

View File

@@ -182,6 +182,9 @@ class DocumentsStore extends BaseStore {
if (!options.prefetch) this.isFetching = true;
try {
const doc = this.getById(id) || this.getByUrl(id);
if (doc) return doc;
const res = await client.post('/documents.info', {
id,
shareId: options.shareId,