forked from mystiq/hydrogen-web
Add menu entry to launch RoomInfoView
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
1e96b58f85
commit
00dbd3db06
2 changed files with 4 additions and 6 deletions
|
@ -288,13 +288,10 @@ 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() {
|
||||
return this._composerVM;
|
||||
}
|
||||
|
|
|
@ -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 a new issue