mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Use url instead of link
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
fcc2afba08
commit
eb870cfc23
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user