update star limit to 200
Simon Smith committed
May 15, 2023 at 12:49 UTC
c1ecfc823abb290927a13d3a27340a4b03665593
1 file changed
+1
-1
views/default.handlebars
+1
-1
@@ -6193,7 +6193,7 @@
6193
if (selectedDevices.length == 0) { selectedDevices.push(nodeid); }
6194
for (var i in selectedDevices) { if (stars[selectedDevices[i]] != null) { delete stars[selectedDevices[i]]; delete selectedDevices[i]; } }
6195
var starcount = Object.keys(stars).length;
6196
- for (var i in selectedDevices) { if ((starcount < 20) && (stars[selectedDevices[i]] == null)) { stars[selectedDevices[i]] = 1; starcount++; } }
6196
+ for (var i in selectedDevices) { if ((starcount < 200) && (stars[selectedDevices[i]] == null)) { stars[selectedDevices[i]] = 1; starcount++; } }
6197
putstore('stars', JSON.stringify(stars));
6198
updateDeviceViewDevice(nodeid);
6199
if (Q('DevFilterSelect').value == 3) { mainUpdate(1); }