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

@ -287,6 +287,13 @@ export class RoomViewModel extends ViewModel {
console.error(err.stack);
}
}
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() {
return this._composerVM;