forked from mystiq/hydrogen-web
add close session button
This commit is contained in:
parent
d96f8adcc7
commit
4f46854362
2 changed files with 6 additions and 0 deletions
|
@ -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 a new issue