Info icon should open/close view alternatively

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-05-27 23:57:28 +05:30
parent d782c9e0bb
commit 2dcec6343d

View file

@ -288,6 +288,13 @@ 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 composerViewModel() { get composerViewModel() {
return this._composerVM; return this._composerVM;
} }