Add memberlist to navigation

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-06-17 15:16:04 +05:30
parent 1418645e15
commit 46a6cf6adf

View File

@ -37,9 +37,9 @@ function allowsChild(parent, child) {
// downside of the approach: both of these will control which tile is selected // downside of the approach: both of these will control which tile is selected
return type === "room" || type === "empty-grid-tile"; return type === "room" || type === "empty-grid-tile";
case "room": case "room":
return type === "lightbox" || type === "members" || type === "rightpanel"; return type === "lightbox" || type === "rightpanel";
case "rightpanel": case "rightpanel":
return type === "details"; return type === "details"|| type === "members";
default: default:
return false; return false;
} }
@ -130,6 +130,10 @@ export function parseUrlPath(urlPath, currentNavPath, defaultSessionId) {
} else if (type === "details") { } else if (type === "details") {
segments.push(new Segment("rightpanel")); segments.push(new Segment("rightpanel"));
segments.push(new Segment("details")); segments.push(new Segment("details"));
} else if (type === "members") {
//TODO: Fix duplication here.
segments.push(new Segment("rightpanel"));
segments.push(new Segment("members"));
} else { } else {
// might be undefined, which will be turned into true by Segment // might be undefined, which will be turned into true by Segment
const value = iterator.next().value; const value = iterator.next().value;