diff options
author | geireann <60007097+geireann@users.noreply.github.com> | 2020-08-24 20:06:22 +0800 |
---|---|---|
committer | geireann <60007097+geireann@users.noreply.github.com> | 2020-08-24 20:06:22 +0800 |
commit | 3769283f04a0029e38d45b2611138f600e4748ef (patch) | |
tree | 052095949c90f740ce2ee3663fb97f1ea56aaad7 /src/client/util/CurrentUserUtils.ts | |
parent | 31fac41cb8a3bd19b02dddc116b11c962f3339d3 (diff) |
merge fixes + pinDoc bug fix
Diffstat (limited to 'src/client/util/CurrentUserUtils.ts')
-rw-r--r-- | src/client/util/CurrentUserUtils.ts | 12 |
1 files changed, 0 insertions, 12 deletions
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) { |