mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
add close session button
This commit is contained in:
parent
d96f8adcc7
commit
4f46854362
@ -44,6 +44,11 @@ export class LeftPanelViewModel extends ViewModel {
|
|||||||
this._roomList = this._roomListFilterMap.sortValues((a, b) => a.compare(b));
|
this._roomList = this._roomListFilterMap.sortValues((a, b) => a.compare(b));
|
||||||
this._currentTileVM = null;
|
this._currentTileVM = null;
|
||||||
this._setupNavigation();
|
this._setupNavigation();
|
||||||
|
this._closeUrl = this.urlRouter.urlForSegment("session");
|
||||||
|
}
|
||||||
|
|
||||||
|
get closeUrl() {
|
||||||
|
return this._closeUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
_setupNavigation() {
|
_setupNavigation() {
|
||||||
|
@ -57,6 +57,7 @@ export class LeftPanelView extends TemplateView {
|
|||||||
vm.i18n`Enable grid layout`;
|
vm.i18n`Enable grid layout`;
|
||||||
};
|
};
|
||||||
const utilitiesRow = t.div({className: "utilities"}, [
|
const utilitiesRow = t.div({className: "utilities"}, [
|
||||||
|
t.a({className: "button-utility close-session", href: vm.closeUrl}),
|
||||||
t.view(new FilterField({
|
t.view(new FilterField({
|
||||||
i18n: vm.i18n,
|
i18n: vm.i18n,
|
||||||
label: vm.i18n`Filter rooms…`,
|
label: vm.i18n`Filter rooms…`,
|
||||||
|
Loading…
Reference in New Issue
Block a user