aboutsummaryrefslogtreecommitdiff
path: root/src/server/authentication/models/current_user_utils.ts
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-07-06 02:36:54 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-07-06 02:36:54 -0400
commitd07b56aec1b1698d8a49283aade3c12c82ae1d0b (patch)
tree447f61a3ee207dff6482771479c517286aba563c /src/server/authentication/models/current_user_utils.ts
parent8780f8652ce2cfdf37dd89be050123da3dc4eac4 (diff)
fixed sidebar problems with doc decorations.
Diffstat (limited to 'src/server/authentication/models/current_user_utils.ts')
-rw-r--r--src/server/authentication/models/current_user_utils.ts7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/server/authentication/models/current_user_utils.ts b/src/server/authentication/models/current_user_utils.ts
index 3e7b407a8..e328d6e5c 100644
--- a/src/server/authentication/models/current_user_utils.ts
+++ b/src/server/authentication/models/current_user_utils.ts
@@ -56,13 +56,8 @@ 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.fakeLibrary as Doc, doc.recentlyClosed as Doc], { title: "Sidebar" });
+ const sidebar = Docs.StackingDocument([doc.workspaces as Doc, doc, doc.recentlyClosed as Doc], { title: "Sidebar" });
sidebar.excludeFromLibrary = true;
sidebar.gridGap = 5;
sidebar.xMargin = 5;