mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Add memberlist to navigation
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
1418645e15
commit
46a6cf6adf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user