aboutsummaryrefslogtreecommitdiffstats
path: root/static/dashboard.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/dashboard.js')
-rw-r--r--static/dashboard.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/dashboard.js b/static/dashboard.js
index 21e1cf3..70fdd6c 100644
--- a/static/dashboard.js
+++ b/static/dashboard.js
@@ -238,6 +238,7 @@ export default {
const charging = b.status === "charging" || b.status === "full";
$(".c-bat .ic").textContent = batteryGlyph(b);
chip(".c-bat", b.level != null ? `${b.level}%` : "—", null, b.level, b.level < 20 && !charging);
+ $(".c-bat").classList.toggle("charging", b.status === "charging");
chip(".c-wifi", w.rssi != null ? `${w.rssi} dBm` : "—", w.band ?? "",
w.rssi == null ? 0 : 2 * (w.rssi + 100)); // -100 dBm empty, -50 full
});