WLED 0.15.0-b4 release

- LED settings update (limit to available outputs)
- minor fixes
This commit is contained in:
Blaz Kristan
2024-06-29 16:36:27 +02:00
parent f0e4dd90ee
commit 7b248c8fb2
15 changed files with 2021 additions and 1905 deletions

View File

@@ -2794,8 +2794,9 @@ function getPalettesData(page, callback)
return res.json();
})
.then(json => {
retry = false;
palettesData = Object.assign({}, palettesData, json.p);
if (page < json.m) setTimeout(()=>{ getPalettesData(page + 1, callback); }, 50);
if (page < json.m) setTimeout(()=>{ getPalettesData(page + 1, callback); }, 75);
else callback();
})
.catch((error)=>{
@@ -2835,7 +2836,8 @@ function search(field, listId = null) {
if (gId("filters").querySelectorAll("input[type=checkbox]:checked").length) return;
// filter list items but leave (Default & Solid) always visible
gId(listId).querySelectorAll('.lstI').forEach((listItem,i)=>{
const listItems = gId("fxlist").querySelectorAll('.lstI');
listItems.forEach((listItem,i)=>{
if (listId!=='pcont' && i===0) return;
const listItemName = listItem.querySelector('.lstIname').innerText.toUpperCase();
const searchIndex = listItemName.indexOf(field.value.toUpperCase());
@@ -3058,7 +3060,7 @@ function size()
function togglePcMode(fromB = false)
{
let ap = (fromB && !lastinfo) || (lastinfo && lastinfo.wifi && lastinfo.witi.ap);
let ap = (fromB && !lastinfo) || (lastinfo && lastinfo.wifi && lastinfo.wifi.ap);
if (fromB) {
pcModeA = !pcModeA;
localStorage.setItem('pcm', pcModeA);