From 46a6cf6adf4c3bb4f353a4575d2af8d79f1ac58d Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 17 Jun 2021 15:16:04 +0530 Subject: [PATCH] Add memberlist to navigation Signed-off-by: RMidhunSuresh --- src/domain/navigation/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/domain/navigation/index.js b/src/domain/navigation/index.js index a8d3bccd..1e4a5941 100644 --- a/src/domain/navigation/index.js +++ b/src/domain/navigation/index.js @@ -37,9 +37,9 @@ function allowsChild(parent, child) { // downside of the approach: both of these will control which tile is selected return type === "room" || type === "empty-grid-tile"; case "room": - return type === "lightbox" || type === "members" || type === "rightpanel"; + return type === "lightbox" || type === "rightpanel"; case "rightpanel": - return type === "details"; + return type === "details"|| type === "members"; default: return false; } @@ -130,6 +130,10 @@ export function parseUrlPath(urlPath, currentNavPath, defaultSessionId) { } else if (type === "details") { segments.push(new Segment("rightpanel")); segments.push(new Segment("details")); + } else if (type === "members") { + //TODO: Fix duplication here. + segments.push(new Segment("rightpanel")); + segments.push(new Segment("members")); } else { // might be undefined, which will be turned into true by Segment const value = iterator.next().value;