mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Add settings button to map panel (#4641)
This commit is contained in:
parent
dd8c568a2c
commit
4e8bf434f1
@ -4,6 +4,7 @@ import { PolymerElement } from "@polymer/polymer/polymer-element";
|
||||
|
||||
import "../../components/ha-menu-button";
|
||||
import "../../components/ha-icon";
|
||||
import { navigate } from "../../common/navigate";
|
||||
|
||||
import "./ha-entity-marker";
|
||||
|
||||
@ -33,6 +34,10 @@ class HaPanelMap extends LocalizeMixin(PolymerElement) {
|
||||
<app-toolbar>
|
||||
<ha-menu-button hass="[[hass]]" narrow="[[narrow]]"></ha-menu-button>
|
||||
<div main-title>[[localize('panel.map')]]</div>
|
||||
<paper-icon-button
|
||||
icon="hass:settings"
|
||||
on-click="openZonesEditor"
|
||||
></paper-icon-button>
|
||||
</app-toolbar>
|
||||
|
||||
<div id="map"></div>
|
||||
@ -67,6 +72,10 @@ class HaPanelMap extends LocalizeMixin(PolymerElement) {
|
||||
}
|
||||
}
|
||||
|
||||
openZonesEditor() {
|
||||
navigate(this, "/config/zone");
|
||||
}
|
||||
|
||||
fitMap() {
|
||||
var bounds;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user