mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 12:16:39 +00:00
address review comments
This commit is contained in:
parent
679457e36a
commit
5e6b28d965
@ -9,6 +9,13 @@ import {
|
|||||||
import "@polymer/paper-icon-button/paper-icon-button";
|
import "@polymer/paper-icon-button/paper-icon-button";
|
||||||
import { fireEvent } from "../../../../common/dom/fire_event";
|
import { fireEvent } from "../../../../common/dom/fire_event";
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
// tslint:disable-next-line
|
||||||
|
interface HASSDomEvents {
|
||||||
|
"opened-changed": { value: boolean };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class HuiNotificationsButton extends LitElement {
|
class HuiNotificationsButton extends LitElement {
|
||||||
@property() public notifications?: string[];
|
@property() public notifications?: string[];
|
||||||
@property() public opened?: boolean;
|
@property() public opened?: boolean;
|
||||||
@ -19,7 +26,7 @@ class HuiNotificationsButton extends LitElement {
|
|||||||
icon="hass:bell"
|
icon="hass:bell"
|
||||||
@click="${this._clicked}"
|
@click="${this._clicked}"
|
||||||
></paper-icon-button>
|
></paper-icon-button>
|
||||||
${this.notifications
|
${this.notifications && this.notifications.length > 0
|
||||||
? html`
|
? html`
|
||||||
<span class="indicator">
|
<span class="indicator">
|
||||||
<div>${this.notifications.length}</div>
|
<div>${this.notifications.length}</div>
|
||||||
|
@ -57,13 +57,6 @@ const JS_CACHE = {};
|
|||||||
|
|
||||||
let loadedUnusedEntities = false;
|
let loadedUnusedEntities = false;
|
||||||
|
|
||||||
declare global {
|
|
||||||
// tslint:disable-next-line
|
|
||||||
interface HASSDomEvents {
|
|
||||||
"opened-changed": { value: boolean };
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class HUIRoot extends LitElement {
|
class HUIRoot extends LitElement {
|
||||||
public narrow?: boolean;
|
public narrow?: boolean;
|
||||||
public showMenu?: boolean;
|
public showMenu?: boolean;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user