dont turn off the lights in ambience mode when the music is paused
This commit is contained in:
parent
e2b64c7052
commit
d1099a2db2
1 changed files with 1 additions and 1 deletions
|
|
@ -508,7 +508,7 @@ export default Em.Component.extend(helperMixin, visualizerMixin, {
|
|||
workedLights = this.get('ambienceWorkedLights'),
|
||||
ambienceWorkedLightsHandles = this.get('ambienceWorkedLightsHandles'),
|
||||
lightOff = (light)=>{
|
||||
if(this.get('ambienceMode')){
|
||||
if(this.get('ambienceMode') && this.get('playing')){
|
||||
Em.$.ajax(this.get('apiURL') + '/lights/' + light + '/state', {
|
||||
data: JSON.stringify({'on': false, 'transitiontime': 20}),
|
||||
contentType: 'application/json',
|
||||
|
|
|
|||
Reference in a new issue