From 4edc58ebcf2c65a1c93bab361f866813a0912bcf Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 26 May 2021 16:40:50 +0530 Subject: [PATCH] Add button in Room header to open details Signed-off-by: RMidhunSuresh --- src/domain/session/room/RoomViewModel.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/domain/session/room/RoomViewModel.js b/src/domain/session/room/RoomViewModel.js index d2d46c32..20ba8034 100644 --- a/src/domain/session/room/RoomViewModel.js +++ b/src/domain/session/room/RoomViewModel.js @@ -104,6 +104,10 @@ export class RoomViewModel extends ViewModel { get timelineViewModel() { return this._timelineVM; } get isEncrypted() { return this._room.isEncrypted; } + get roomDetailsLink() { + return this.urlCreator.urlForSegment("details"); + } + get error() { if (this._timelineError) { return `Something went wrong loading the timeline: ${this._timelineError.message}`; @@ -383,4 +387,4 @@ class ArchivedViewModel extends ViewModel { get kind() { return "archived"; } -} \ No newline at end of file +}