mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Add menu entry to launch RoomInfoView
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
1e96b58f85
commit
00dbd3db06
@ -288,11 +288,8 @@ export class RoomViewModel extends ViewModel {
|
||||
}
|
||||
}
|
||||
|
||||
toggleDetailsPanel() {
|
||||
const isPanelOpen = !!this.navigation.path.get("details");
|
||||
const link = isPanelOpen ? this.urlCreator.urlUntilSegment("room"):
|
||||
this.urlCreator.urlForSegment("details");
|
||||
window.location.href = link;
|
||||
get detailsLink() {
|
||||
return this.urlCreator.urlForSegment("details");
|
||||
}
|
||||
|
||||
get composerViewModel() {
|
||||
|
@ -77,6 +77,7 @@ export class RoomView extends TemplateView {
|
||||
if (vm.canRejoin) {
|
||||
options.push(Menu.optionWithButton(vm.i18n`Rejoin room`, () => vm.rejoinRoom()));
|
||||
}
|
||||
options.push(Menu.optionWithLink(vm.i18n`Room Details`, vm.detailsLink))
|
||||
if (!options.length) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user