mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Hide oscillating button if oscillation not used (#301)
This commit is contained in:
parent
e570464f27
commit
865b05b510
@ -12,12 +12,14 @@
|
|||||||
<style is='custom-style' include='iron-flex'></style>
|
<style is='custom-style' include='iron-flex'></style>
|
||||||
<style>
|
<style>
|
||||||
.container-speed_list,
|
.container-speed_list,
|
||||||
.container-direction {
|
.container-direction,
|
||||||
|
.container-oscillating {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.has-speed_list .container-speed_list,
|
.has-speed_list .container-speed_list,
|
||||||
.has-direction .container-direction {
|
.has-direction .container-direction,
|
||||||
|
.has-oscillating .container-oscillating {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -35,7 +37,7 @@
|
|||||||
</paper-dropdown-menu>
|
</paper-dropdown-menu>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class='container-oscillating' hidden$='[[computeHideOscillation(stateObj)]]'>
|
<div class='container-oscillating'>
|
||||||
<div class='center horizontal layout single-row'>
|
<div class='center horizontal layout single-row'>
|
||||||
<div class='flex'>Oscillate</div>
|
<div class='flex'>Oscillate</div>
|
||||||
<paper-toggle-button
|
<paper-toggle-button
|
||||||
@ -156,9 +158,5 @@ Polymer({
|
|||||||
return stateObj.attributes.direction === 'right';
|
return stateObj.attributes.direction === 'right';
|
||||||
},
|
},
|
||||||
|
|
||||||
computeHideOscillation: function (stateObj) {
|
|
||||||
return stateObj.attributes.direction;
|
|
||||||
},
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user