diff options
author | bobzel <zzzman@gmail.com> | 2020-10-28 09:19:40 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-28 09:19:40 -0400 |
commit | 803ed1bdfd6d234245ab2663c6cd19fa386143b7 (patch) | |
tree | 789a3d19161918a34c5c978f9fa85440f7c6ce39 /src/client/util/DocumentManager.ts | |
parent | 09dae896673d08d7030b71fb2c3f52924726f58e (diff) | |
parent | 7dc149a7ea8b988ba90f0a46466499ea46580e2e (diff) |
Merge branch 'presentation_v1'
Diffstat (limited to 'src/client/util/DocumentManager.ts')
-rw-r--r-- | src/client/util/DocumentManager.ts | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts index 805e0e897..14aaeaec0 100644 --- a/src/client/util/DocumentManager.ts +++ b/src/client/util/DocumentManager.ts @@ -128,14 +128,9 @@ export class DocumentManager { } - static addView = (doc: Doc, finished?: () => void, presCollection?: Doc) => { - if (presCollection) { - const collectionDocView = DocumentManager.Instance.getDocumentView(presCollection); - if (collectionDocView) collectionDocView.props.addDocTab(doc, "replace"); - } else { - CollectionDockingView.AddSplit(doc, "right"); - finished?.(); - } + static addView = (doc: Doc, finished?: () => void) => { + CollectionDockingView.AddSplit(doc, "right"); + finished?.(); } public jumpToDocument = async ( targetDoc: Doc, // document to display |