Use url instead of link
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
fcc2afba08
commit
eb870cfc23
2 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Reference in a new issue