mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 12:04:57 +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
|
// 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user