aboutsummaryrefslogtreecommitdiff
path: root/src/server/authentication/models/current_user_utils.ts
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-07-06 00:30:52 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-07-06 00:30:52 -0400
commit8780f8652ce2cfdf37dd89be050123da3dc4eac4 (patch)
tree2ff53b65ea99e8622446911ff01e0000f6a4148c /src/server/authentication/models/current_user_utils.ts
parent8a902049db8378e13a28b19b1ad34a36882fbcb1 (diff)
don't understand what could be happening..
Diffstat (limited to 'src/server/authentication/models/current_user_utils.ts')
-rw-r--r--src/server/authentication/models/current_user_utils.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/server/authentication/models/current_user_utils.ts b/src/server/authentication/models/current_user_utils.ts
index 30a6f108a..3e7b407a8 100644
--- a/src/server/authentication/models/current_user_utils.ts
+++ b/src/server/authentication/models/current_user_utils.ts
@@ -34,6 +34,9 @@ export class CurrentUserUtils {
doc.title = this.email;
this.updateUserDocument(doc);
doc.data = new List<Doc>();
+ doc.gridGap = 5;
+ doc.xMargin = 5;
+ doc.yMargin = 5;
doc.excludeFromLibrary = true;
doc.optionalRightCollection = Docs.StackingDocument([], { title: "New mobile uploads" });
// doc.library = Docs.TreeDocument([doc], { title: `Library: ${CurrentUserUtils.email}` });
@@ -53,8 +56,13 @@ export class CurrentUserUtils {
recentlyClosed.excludeFromLibrary = true;
doc.recentlyClosed = recentlyClosed;
}
+ if (doc.fakeLibrary === undefined) {
+ const recentlyClosed = Docs.TreeDocument([], { title: "Fake Library", height: 200 });
+ recentlyClosed.excludeFromLibrary = true;
+ doc.fakeLibrary = recentlyClosed;
+ }
if (doc.sidebar === undefined) {
- const sidebar = Docs.StackingDocument([doc.workspaces as Doc, doc, doc.recentlyClosed as Doc], { title: "Sidebar" });
+ const sidebar = Docs.StackingDocument([doc.workspaces as Doc, doc.fakeLibrary as Doc, doc.recentlyClosed as Doc], { title: "Sidebar" });
sidebar.excludeFromLibrary = true;
sidebar.gridGap = 5;
sidebar.xMargin = 5;