mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 12:16:39 +00:00
Change map settings icon (#4701)
* Change map settings icon Closes #4694 * hide for demo
This commit is contained in:
parent
3215437bb8
commit
f5dec3c6d5
@ -34,10 +34,12 @@ 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>
|
||||||
|
<template is="dom-if" if="[[!computeDemo()]]">
|
||||||
<paper-icon-button
|
<paper-icon-button
|
||||||
icon="hass:settings"
|
icon="hass:pencil"
|
||||||
on-click="openZonesEditor"
|
on-click="openZonesEditor"
|
||||||
></paper-icon-button>
|
></paper-icon-button>
|
||||||
|
</template>
|
||||||
</app-toolbar>
|
</app-toolbar>
|
||||||
|
|
||||||
<div id="map"></div>
|
<div id="map"></div>
|
||||||
@ -72,6 +74,10 @@ class HaPanelMap extends LocalizeMixin(PolymerElement) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
computeDemo() {
|
||||||
|
return __DEMO__;
|
||||||
|
}
|
||||||
|
|
||||||
openZonesEditor() {
|
openZonesEditor() {
|
||||||
navigate(this, "/config/zone");
|
navigate(this, "/config/zone");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user