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 {
|
||||
@property() public notifications?: string[];
|
||||
@property() public open?: boolean;
|
||||
@property() public opened?: boolean;
|
||||
|
||||
protected render(): TemplateResult | void {
|
||||
return html`
|
||||
@ -43,8 +43,8 @@ class HuiNotificationsButton extends LitElement {
|
||||
}
|
||||
|
||||
private _clicked() {
|
||||
this.open = true;
|
||||
fireEvent(this, "open-changed");
|
||||
this.opened = true;
|
||||
fireEvent(this, "opened", { value: this.opened });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ let loadedUnusedEntities = false;
|
||||
declare global {
|
||||
// tslint:disable-next-line
|
||||
interface HASSDomEvents {
|
||||
"open-changed": {};
|
||||
opened: {};
|
||||
}
|
||||
}
|
||||
|
||||
@ -193,8 +193,8 @@ class HUIRoot extends LitElement {
|
||||
<div main-title>${this.config.title || "Home Assistant"}</div>
|
||||
<hui-notifications-button
|
||||
.hass="${this.hass}"
|
||||
.open="${this._notificationsOpen}"
|
||||
@open-changed="${this._handleNotificationsOpenChanged}"
|
||||
.opened="${this._notificationsOpen}"
|
||||
@opened="${this._handleNotificationsOpenChanged}"
|
||||
.notifications="${this._notifications}"
|
||||
></hui-notifications-button>
|
||||
<ha-start-voice-button
|
||||
|
Loading…
x
Reference in New Issue
Block a user