mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 00:36:34 +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-menu-button";
|
||||||
import "../../components/ha-icon";
|
import "../../components/ha-icon";
|
||||||
|
import { navigate } from "../../common/navigate";
|
||||||
|
|
||||||
import "./ha-entity-marker";
|
import "./ha-entity-marker";
|
||||||
|
|
||||||
@ -33,6 +34,10 @@ class HaPanelMap extends LocalizeMixin(PolymerElement) {
|
|||||||
<app-toolbar>
|
<app-toolbar>
|
||||||
<ha-menu-button hass="[[hass]]" narrow="[[narrow]]"></ha-menu-button>
|
<ha-menu-button hass="[[hass]]" narrow="[[narrow]]"></ha-menu-button>
|
||||||
<div main-title>[[localize('panel.map')]]</div>
|
<div main-title>[[localize('panel.map')]]</div>
|
||||||
|
<paper-icon-button
|
||||||
|
icon="hass:settings"
|
||||||
|
on-click="openZonesEditor"
|
||||||
|
></paper-icon-button>
|
||||||
</app-toolbar>
|
</app-toolbar>
|
||||||
|
|
||||||
<div id="map"></div>
|
<div id="map"></div>
|
||||||
@ -67,6 +72,10 @@ class HaPanelMap extends LocalizeMixin(PolymerElement) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
openZonesEditor() {
|
||||||
|
navigate(this, "/config/zone");
|
||||||
|
}
|
||||||
|
|
||||||
fitMap() {
|
fitMap() {
|
||||||
var bounds;
|
var bounds;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user