address review comments

This commit is contained in:
Ian Richardson 2019-02-17 22:17:45 -06:00
parent 679457e36a
commit 5e6b28d965
2 changed files with 8 additions and 8 deletions

View File

@ -9,6 +9,13 @@ import {
import "@polymer/paper-icon-button/paper-icon-button";
import { fireEvent } from "../../../../common/dom/fire_event";
declare global {
// tslint:disable-next-line
interface HASSDomEvents {
"opened-changed": { value: boolean };
}
}
class HuiNotificationsButton extends LitElement {
@property() public notifications?: string[];
@property() public opened?: boolean;
@ -19,7 +26,7 @@ class HuiNotificationsButton extends LitElement {
icon="hass:bell"
@click="${this._clicked}"
></paper-icon-button>
${this.notifications
${this.notifications && this.notifications.length > 0
? html`
<span class="indicator">
<div>${this.notifications.length}</div>

View File

@ -57,13 +57,6 @@ const JS_CACHE = {};
let loadedUnusedEntities = false;
declare global {
// tslint:disable-next-line
interface HASSDomEvents {
"opened-changed": { value: boolean };
}
}
class HUIRoot extends LitElement {
public narrow?: boolean;
public showMenu?: boolean;