mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-25 19:51:39 +01:00
Info icon should open/close view alternatively
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
d782c9e0bb
commit
2dcec6343d
@ -287,6 +287,13 @@ export class RoomViewModel extends ViewModel {
|
|||||||
console.error(err.stack);
|
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() {
|
get composerViewModel() {
|
||||||
return this._composerVM;
|
return this._composerVM;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user