From 08222dfbec49100834b597755e9dfea0045efea7 Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Tue, 12 Feb 2019 17:30:50 -0600 Subject: [PATCH] review comments --- .../components/notifications/hui-notifications-button.ts | 6 +++--- src/panels/lovelace/hui-root.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/panels/lovelace/components/notifications/hui-notifications-button.ts b/src/panels/lovelace/components/notifications/hui-notifications-button.ts index 8bff5f3a21..3eb69a243a 100644 --- a/src/panels/lovelace/components/notifications/hui-notifications-button.ts +++ b/src/panels/lovelace/components/notifications/hui-notifications-button.ts @@ -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 }); } } diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index 86376918b0..6d198621ef 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -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 {
${this.config.title || "Home Assistant"}