mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
review comments
This commit is contained in:
parent
e8d84e8ba5
commit
08222dfbec
@ -12,7 +12,7 @@ import { fireEvent } from "../../../../common/dom/fire_event";
|
|||||||
|
|
||||||
class HuiNotificationsButton extends LitElement {
|
class HuiNotificationsButton extends LitElement {
|
||||||
@property() public notifications?: string[];
|
@property() public notifications?: string[];
|
||||||
@property() public open?: boolean;
|
@property() public opened?: boolean;
|
||||||
|
|
||||||
protected render(): TemplateResult | void {
|
protected render(): TemplateResult | void {
|
||||||
return html`
|
return html`
|
||||||
@ -43,8 +43,8 @@ class HuiNotificationsButton extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _clicked() {
|
private _clicked() {
|
||||||
this.open = true;
|
this.opened = true;
|
||||||
fireEvent(this, "open-changed");
|
fireEvent(this, "opened", { value: this.opened });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ let loadedUnusedEntities = false;
|
|||||||
declare global {
|
declare global {
|
||||||
// tslint:disable-next-line
|
// tslint:disable-next-line
|
||||||
interface HASSDomEvents {
|
interface HASSDomEvents {
|
||||||
"open-changed": {};
|
opened: {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -193,8 +193,8 @@ class HUIRoot extends LitElement {
|
|||||||
<div main-title>${this.config.title || "Home Assistant"}</div>
|
<div main-title>${this.config.title || "Home Assistant"}</div>
|
||||||
<hui-notifications-button
|
<hui-notifications-button
|
||||||
.hass="${this.hass}"
|
.hass="${this.hass}"
|
||||||
.open="${this._notificationsOpen}"
|
.opened="${this._notificationsOpen}"
|
||||||
@open-changed="${this._handleNotificationsOpenChanged}"
|
@opened="${this._handleNotificationsOpenChanged}"
|
||||||
.notifications="${this._notifications}"
|
.notifications="${this._notifications}"
|
||||||
></hui-notifications-button>
|
></hui-notifications-button>
|
||||||
<ha-start-voice-button
|
<ha-start-voice-button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user