Bugfixes [ColorOrder apply, hue wizard, ledDevice display] (#621)

* Resolve general colorOrder update issue

* Fix: wizard.js syntax broken

* Fix: Remove active device prop and migrate to config data

* Fixing instanceStop Bug on WebUi (#10)

* Fixing instanceStop Bug on WebUi

* Added removeStorage

* Changes to deletion logic

* Improvements to deletion check

* Feat: Show always save btn & rm generate btn
This commit is contained in:
brindosch
2019-09-07 01:17:26 +02:00
committed by GitHub
parent c94bcd8911
commit 145f88d5af
10 changed files with 40 additions and 34 deletions

View File

@@ -705,17 +705,21 @@ function beginWizardHue()
checkHueBridge(checkUserResult,$('#user').val() ? $('#user').val() : "newdeveloper");
});
//create hue led config
for(var key in lightIDs)
$('#btn_wiz_save').off().on("click", function(){
var hueLedConfig = [];
var finalLightIds = [];
//create hue led config
for(var key in lightIDs)
{
if($('#hue_'+key).val() != "disabled")
{
if($('#hue_'+key).val() != "disabled")
{
hueLedConfig.push(assignHuePos(key, $('#hue_'+key).val()));
finalLightIds.push(parseInt(key));
}
hueLedConfig.push(assignHuePos(key, $('#hue_'+key).val()));
finalLightIds.push(parseInt(key));
}
}
window.serverConfig.leds = hueLedConfig;
//Adjust gamma, brightness and compensation