Info icon should open/close view alternatively
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
d782c9e0bb
commit
2dcec6343d
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue