mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Polymer .9: Remove workaround in sidebar
This commit is contained in:
parent
52895658e5
commit
f517445d36
@ -72,40 +72,12 @@
|
|||||||
<iron-icon icon="apps"></iron-icon> States
|
<iron-icon icon="apps"></iron-icon> States
|
||||||
</paper-item>
|
</paper-item>
|
||||||
|
|
||||||
<!--
|
|
||||||
Disabling because data-panel attribute not persisted in dom-repeat
|
|
||||||
|
|
||||||
<template is="dom-repeat" items="{{activeFilters}}">
|
<template is="dom-repeat" items="{{activeFilters}}">
|
||||||
<paper-item data-panel="[[filterType(item)]]">
|
<paper-item data-panel$="[[filterType(item)]]">
|
||||||
<iron-icon icon="[[filterIcon(item)]]"></iron-icon>
|
<iron-icon icon="[[filterIcon(item)]]"></iron-icon>
|
||||||
<span>[[filterName(item)]]</span>
|
<span>[[filterName(item)]]</span>
|
||||||
</paper-item>
|
</paper-item>
|
||||||
</template>
|
</template>
|
||||||
-->
|
|
||||||
|
|
||||||
<template is="dom-if" if="[[hasGroupFilter(activeFilters)]]">
|
|
||||||
<paper-item data-panel="states_group">
|
|
||||||
<iron-icon icon="homeassistant-24:group"></iron-icon>
|
|
||||||
<span>Groups</span>
|
|
||||||
</paper-item>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<template is="dom-if" if="[[hasScriptFilter(activeFilters)]]">
|
|
||||||
<paper-item data-panel="states_script">
|
|
||||||
<iron-icon icon="description"></iron-icon>
|
|
||||||
<span>Scripts</span>
|
|
||||||
</paper-item>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<template is="dom-if" if="[[hasSceneFilter(activeFilters)]]">
|
|
||||||
<paper-item data-panel="states_scene">
|
|
||||||
<iron-icon icon="social:pages"></iron-icon>
|
|
||||||
<span>Scenes</span>
|
|
||||||
</paper-item>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<!-- /TEMP WORK AROUND -->
|
|
||||||
|
|
||||||
|
|
||||||
<template is="dom-if" if="[[hasHistoryComponent]]">
|
<template is="dom-if" if="[[hasHistoryComponent]]">
|
||||||
<paper-item data-panel="history">
|
<paper-item data-panel="history">
|
||||||
@ -351,21 +323,6 @@
|
|||||||
authActions.logOut();
|
authActions.logOut();
|
||||||
},
|
},
|
||||||
|
|
||||||
// temporary work around for dom-repeat weirdness
|
|
||||||
hasGroupFilter: function(activeFilters) {
|
|
||||||
return activeFilters.indexOf('group') !== -1;
|
|
||||||
},
|
|
||||||
|
|
||||||
hasScriptFilter: function(activeFilters) {
|
|
||||||
return activeFilters.indexOf('script') !== -1;
|
|
||||||
},
|
|
||||||
|
|
||||||
hasSceneFilter: function(activeFilters) {
|
|
||||||
return activeFilters.indexOf('scene') !== -1;
|
|
||||||
},
|
|
||||||
|
|
||||||
// /temp work around
|
|
||||||
|
|
||||||
computeIsSelected: function(selected, selectedType) {
|
computeIsSelected: function(selected, selectedType) {
|
||||||
return selected === selectedType;
|
return selected === selectedType;
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user