aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/CurrentUserUtils.ts
diff options
context:
space:
mode:
authorgeireann <60007097+geireann@users.noreply.github.com>2020-08-24 20:06:22 +0800
committergeireann <60007097+geireann@users.noreply.github.com>2020-08-24 20:06:22 +0800
commit3769283f04a0029e38d45b2611138f600e4748ef (patch)
tree052095949c90f740ce2ee3663fb97f1ea56aaad7 /src/client/util/CurrentUserUtils.ts
parent31fac41cb8a3bd19b02dddc116b11c962f3339d3 (diff)
merge fixes + pinDoc bug fix
Diffstat (limited to 'src/client/util/CurrentUserUtils.ts')
-rw-r--r--src/client/util/CurrentUserUtils.ts12
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) {