From 3769283f04a0029e38d45b2611138f600e4748ef Mon Sep 17 00:00:00 2001 From: geireann <60007097+geireann@users.noreply.github.com> Date: Mon, 24 Aug 2020 20:06:22 +0800 Subject: merge fixes + pinDoc bug fix --- src/client/util/CurrentUserUtils.ts | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/client/util') diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts index c65b5b53c..821bb917a 100644 --- a/src/client/util/CurrentUserUtils.ts +++ b/src/client/util/CurrentUserUtils.ts @@ -756,18 +756,6 @@ export class CurrentUserUtils { return doc.myDashboards as any as Doc; } - static async addToPresList(doc: Doc, pres: Doc) { - await doc.myPresentations; - if (doc.myPresentations === undefined) { - doc.myPresentations = new PrefetchProxy(Docs.Create.TreeDocument([], { - title: "PRESENTATION TRAILS", _height: 100, forceActive: true, boxShadow: "0 0", lockedPosition: true, treeViewOpen: true, system: true - })); - } - const myPresentations = doc.myPresentations as Doc; - doc.activePresentation = pres; - Doc.AddDocToList(myPresentations, "data", pres); - } - static async setupPresentations(doc: Doc) { await doc.myPresentations; if (doc.myPresentations === undefined) { -- cgit v1.2.3-70-g09d2