update star limit to 200

This commit is contained in:
Simon Smith 2023-05-15 12:49:58 +01:00
parent 3dd469f1a0
commit c1ecfc823a

View File

@ -6193,7 +6193,7 @@
if (selectedDevices.length == 0) { selectedDevices.push(nodeid); }
for (var i in selectedDevices) { if (stars[selectedDevices[i]] != null) { delete stars[selectedDevices[i]]; delete selectedDevices[i]; } }
var starcount = Object.keys(stars).length;
for (var i in selectedDevices) { if ((starcount < 20) && (stars[selectedDevices[i]] == null)) { stars[selectedDevices[i]] = 1; starcount++; } }
for (var i in selectedDevices) { if ((starcount < 200) && (stars[selectedDevices[i]] == null)) { stars[selectedDevices[i]] = 1; starcount++; } }
putstore('stars', JSON.stringify(stars));
updateDeviceViewDevice(nodeid);
if (Q('DevFilterSelect').value == 3) { mainUpdate(1); }