mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +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>
|
||||
<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>
|
||||
<template is="dom-if" if="[[!computeDemo()]]">
|
||||
<paper-icon-button
|
||||
icon="hass:pencil"
|
||||
on-click="openZonesEditor"
|
||||
></paper-icon-button>
|
||||
</template>
|
||||
</app-toolbar>
|
||||
|
||||
<div id="map"></div>
|
||||
@ -72,6 +74,10 @@ class HaPanelMap extends LocalizeMixin(PolymerElement) {
|
||||
}
|
||||
}
|
||||
|
||||
computeDemo() {
|
||||
return __DEMO__;
|
||||
}
|
||||
|
||||
openZonesEditor() {
|
||||
navigate(this, "/config/zone");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user