-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notification drawer #1536
Notification drawer #1536
Conversation
} | ||
|
||
_openChanged(open) { | ||
clearTimeout(openTimer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not looked at all the code but this is wrong. This should be an instance variable.
src/panels/lovelace/hui-root.js
Outdated
|
||
connectedCallback() { | ||
super.connectedCallback(); | ||
this.addEventListener('close-notification-drawer', this._debouncedNotificationsClose); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is overkill. Just have the button use a 2-way databinding to the notificationDrawer open ?
I did not realize that the PR was ready for review, looks good ! |
Needs work still, but wanted some eyes on this. Handles persistent_notifications and configurator entities as-is, but should be easy to modify to support other types, events, etc.