mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-16 22:40:55 +00:00
Menu button simplify (#2930)
* Simplify the hass-menu button * Purge showMenu boolean
This commit is contained in:
@@ -11,9 +11,6 @@ import { fireEvent } from "../common/dom/fire_event";
|
||||
|
||||
@customElement("ha-menu-button")
|
||||
class HaMenuButton extends LitElement {
|
||||
@property({ type: Boolean })
|
||||
public showMenu = false;
|
||||
|
||||
@property({ type: Boolean })
|
||||
public hassio = false;
|
||||
|
||||
@@ -33,7 +30,7 @@ class HaMenuButton extends LitElement {
|
||||
}
|
||||
|
||||
private _toggleMenu(): void {
|
||||
fireEvent(this, this.showMenu ? "hass-close-menu" : "hass-open-menu");
|
||||
fireEvent(this, "hass-toggle-menu");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user