Show notification indicator in forced mobile mode (#3420)

This commit is contained in:
Paulus Schoutsen 2019-07-25 10:14:20 -07:00 committed by GitHub
parent 0f6d0b164f
commit c3118eada9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ class HaMenuButton extends LitElement {
protected render(): TemplateResult | void {
const hasNotifications =
this.narrow &&
(this.narrow || this.hass.dockedSidebar === "always_hidden") &&
(this._hasNotifications ||
Object.keys(this.hass.states).some(
(entityId) => computeDomain(entityId) === "configurator"
@ -131,9 +131,10 @@ class HaMenuButton extends LitElement {
background-color: var(--accent-color);
width: 12px;
height: 12px;
top: 8px;
right: 5px;
top: 5px;
right: 2px;
border-radius: 50%;
border: 2px solid var(--primary-color);
}
`;
}