Use url instead of link

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-06-04 18:04:07 +05:30
parent fcc2afba08
commit eb870cfc23
2 changed files with 3 additions and 3 deletions

View file

@ -36,7 +36,7 @@ export class RoomViewModel extends ViewModel {
} }
this._clearUnreadTimout = null; this._clearUnreadTimout = null;
this._closeUrl = this.urlCreator.urlUntilSegment("session"); this._closeUrl = this.urlCreator.urlUntilSegment("session");
this._detailsLink = this.urlCreator.urlForSegment("details"); this._detailsUrl = this.urlCreator.urlForSegment("details");
} }
async load() { async load() {
@ -104,7 +104,7 @@ export class RoomViewModel extends ViewModel {
get id() { return this._room.id; } get id() { return this._room.id; }
get timelineViewModel() { return this._timelineVM; } get timelineViewModel() { return this._timelineVM; }
get isEncrypted() { return this._room.isEncrypted; } get isEncrypted() { return this._room.isEncrypted; }
get detailsLink() { return this._detailsLink; } get detailsUrl() { return this._detailsUrl; }
get error() { get error() {
if (this._timelineError) { if (this._timelineError) {

View file

@ -68,7 +68,7 @@ export class RoomView extends TemplateView {
} else { } else {
const vm = this.value; const vm = this.value;
const options = []; 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) { if (vm.canLeave) {
options.push(Menu.optionWithButton(vm.i18n`Leave room`, () => vm.leaveRoom()).setDestructive()); options.push(Menu.optionWithButton(vm.i18n`Leave room`, () => vm.leaveRoom()).setDestructive());
} }