Fix sidebar issues (#2667)

This commit is contained in:
Paulus Schoutsen 2019-02-03 10:58:57 -08:00 committed by GitHub
parent dadb5f92ee
commit acce6f0b2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,14 @@ import { PolymerChangedEvent } from "../polymer-types";
const NON_SWIPABLE_PANELS = ["kiosk", "map"];
declare global {
// for fire event
interface HASSDomEvents {
"hass-open-menu": undefined;
"hass-close-menu": undefined;
}
}
class HomeAssistantMain extends LitElement {
public hass?: HomeAssistant;
public route?: Route;
@ -32,7 +40,7 @@ class HomeAssistantMain extends LitElement {
static get properties(): PropertyDeclarations {
return {
hass: {},
narrow: {},
_narrow: {},
route: {},
};
}
@ -50,7 +58,7 @@ class HomeAssistantMain extends LitElement {
<ha-url-sync .hass=${hass}></ha-url-sync>
<iron-media-query
query="(max-width: 870px)"
query-matches-changed=${this._narrowChanged}
@query-matches-changed=${this._narrowChanged}
></iron-media-query>
<app-drawer-layout