mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +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 { 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>
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user