mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 12:04:57 +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() {
|
get detailsLink() {
|
||||||
const isPanelOpen = !!this.navigation.path.get("details");
|
return this.urlCreator.urlForSegment("details");
|
||||||
const link = isPanelOpen ? this.urlCreator.urlUntilSegment("room"):
|
|
||||||
this.urlCreator.urlForSegment("details");
|
|
||||||
window.location.href = link;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get composerViewModel() {
|
get composerViewModel() {
|
||||||
|
@ -77,6 +77,7 @@ export class RoomView extends TemplateView {
|
|||||||
if (vm.canRejoin) {
|
if (vm.canRejoin) {
|
||||||
options.push(Menu.optionWithButton(vm.i18n`Rejoin room`, () => vm.rejoinRoom()));
|
options.push(Menu.optionWithButton(vm.i18n`Rejoin room`, () => vm.rejoinRoom()));
|
||||||
}
|
}
|
||||||
|
options.push(Menu.optionWithLink(vm.i18n`Room Details`, vm.detailsLink))
|
||||||
if (!options.length) {
|
if (!options.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user