From eb870cfc23d1b09577fc04e728918ae0cb54a222 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 4 Jun 2021 18:04:07 +0530 Subject: [PATCH] Use url instead of link Signed-off-by: RMidhunSuresh --- src/domain/session/room/RoomViewModel.js | 4 ++-- src/platform/web/ui/session/room/RoomView.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/domain/session/room/RoomViewModel.js b/src/domain/session/room/RoomViewModel.js index 47bc0c7b..60cd0055 100644 --- a/src/domain/session/room/RoomViewModel.js +++ b/src/domain/session/room/RoomViewModel.js @@ -36,7 +36,7 @@ export class RoomViewModel extends ViewModel { } this._clearUnreadTimout = null; this._closeUrl = this.urlCreator.urlUntilSegment("session"); - this._detailsLink = this.urlCreator.urlForSegment("details"); + this._detailsUrl = this.urlCreator.urlForSegment("details"); } async load() { @@ -104,7 +104,7 @@ export class RoomViewModel extends ViewModel { get id() { return this._room.id; } get timelineViewModel() { return this._timelineVM; } get isEncrypted() { return this._room.isEncrypted; } - get detailsLink() { return this._detailsLink; } + get detailsUrl() { return this._detailsUrl; } get error() { if (this._timelineError) { diff --git a/src/platform/web/ui/session/room/RoomView.js b/src/platform/web/ui/session/room/RoomView.js index c08d4b72..c1a1ed74 100644 --- a/src/platform/web/ui/session/room/RoomView.js +++ b/src/platform/web/ui/session/room/RoomView.js @@ -68,7 +68,7 @@ export class RoomView extends TemplateView { } else { const vm = this.value; const options = []; - options.push(Menu.optionWithLink(vm.i18n`Room details`, vm.detailsLink)) + options.push(Menu.optionWithLink(vm.i18n`Room details`, vm.detailsUrl)) if (vm.canLeave) { options.push(Menu.optionWithButton(vm.i18n`Leave room`, () => vm.leaveRoom()).setDestructive()); }