aboutsummaryrefslogtreecommitdiff
path: root/src/server/authentication/models/current_user_utils.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-07-05 14:45:15 -0400
committerbob <bcz@cs.brown.edu>2019-07-05 14:45:15 -0400
commit8b9fa667816378cc6cae2977f1c2d80c204b28d0 (patch)
tree4e22f3c293bf10269c284662451a3d77411da2ca /src/server/authentication/models/current_user_utils.ts
parent336266551d363df8c4958d485170846b478f1787 (diff)
added more options to sidebar
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, 10 insertions, 0 deletions
diff --git a/src/server/authentication/models/current_user_utils.ts b/src/server/authentication/models/current_user_utils.ts
index 816c5f269..3134ecaff 100644
--- a/src/server/authentication/models/current_user_utils.ts
+++ b/src/server/authentication/models/current_user_utils.ts
@@ -31,6 +31,16 @@ export class CurrentUserUtils {
doc.viewType = CollectionViewType.Tree;
doc.dropAction = "alias";
doc.layout = CollectionView.LayoutString();
+ doc.workspaces = Docs.TreeDocument([], { title: "Workspaces", height: 100 });
+ (doc.workspaces as Doc).excludeFromLibrary = true;
+ (doc.workspaces as Doc).workspaceLibrary = true;
+ doc.recentlyClosed = Docs.TreeDocument([], { title: "Recently Closed", height: 75 });
+ (doc.workspaces as Doc).excludeFromLibrary = true;
+ doc.sidebar = Docs.StackingDocument([doc.workspaces as Doc, doc, doc.recentlyClosed as Doc], { title: "Sidebar" });
+ (doc.sidebar as Doc).excludeFromLibrary = true;
+ (doc.sidebar as Doc).gridGap = 5;
+ (doc.sidebar as Doc).xMargin = 5;
+ (doc.sidebar as Doc).yMargin = 5;
doc.title = this.email;
doc.data = new List<Doc>();
doc.excludeFromLibrary = true;