mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Add header to UnknownRoomView
This commit is contained in:
parent
7d1d6c73ee
commit
023b36575f
@ -24,6 +24,11 @@ export class UnknownRoomViewModel extends ViewModel {
|
||||
this.roomIdOrAlias = roomIdOrAlias;
|
||||
this._error = null;
|
||||
this._busy = false;
|
||||
this._closeUrl = this.urlRouter.urlUntilSegment("session");
|
||||
}
|
||||
|
||||
get closeUrl() {
|
||||
return this._closeUrl;
|
||||
}
|
||||
|
||||
get error() {
|
||||
|
@ -19,6 +19,10 @@ import {TemplateView} from "../../general/TemplateView";
|
||||
export class UnknownRoomView extends TemplateView {
|
||||
render(t, vm) {
|
||||
return t.main({className: "UnknownRoomView middle"}, [
|
||||
t.div({className: "UnknownRoomView_header middle-header"}, [
|
||||
t.a({className: "button-utility close-middle", href: vm.closeUrl, title: vm.i18n`Cancel room join`}),
|
||||
t.h2("Join room"),
|
||||
]),
|
||||
t.div({className: "UnknownRoomView_body centered-column"}, [
|
||||
t.h2([
|
||||
vm.i18n`You are currently not in ${vm.roomIdOrAlias}.`,
|
||||
|
Loading…
Reference in New Issue
Block a user