add close session button

This commit is contained in:
Bruno Windels 2020-10-14 14:54:46 +02:00
parent d96f8adcc7
commit 4f46854362
2 changed files with 6 additions and 0 deletions

View file

@ -44,6 +44,11 @@ export class LeftPanelViewModel extends ViewModel {
this._roomList = this._roomListFilterMap.sortValues((a, b) => a.compare(b));
this._currentTileVM = null;
this._setupNavigation();
this._closeUrl = this.urlRouter.urlForSegment("session");
}
get closeUrl() {
return this._closeUrl;
}
_setupNavigation() {

View file

@ -57,6 +57,7 @@ export class LeftPanelView extends TemplateView {
vm.i18n`Enable grid layout`;
};
const utilitiesRow = t.div({className: "utilities"}, [
t.a({className: "button-utility close-session", href: vm.closeUrl}),
t.view(new FilterField({
i18n: vm.i18n,
label: vm.i18n`Filter rooms…`,