Skip to content

Commit 09634bb

Browse files
committed
fix: only show db size stat on coverage tab, not realtime
1 parent eb67b7d commit 09634bb

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • src/where_the_plow/static

src/where_the_plow/static/app.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -936,9 +936,8 @@ function updateVehicleCount(data) {
936936
.then((r) => r.json())
937937
.then((stats) => {
938938
if (stats.db_size_bytes) {
939-
const el = document.getElementById("db-size");
940-
el.textContent = formatBytes(stats.db_size_bytes) + " of data";
941-
el.style.display = "";
939+
document.getElementById("db-size").textContent =
940+
formatBytes(stats.db_size_bytes) + " of data";
942941
}
943942
})
944943
.catch(() => {});
@@ -1554,7 +1553,7 @@ class PlowApp {
15541553
this.map.setVehiclesVisible(false);
15551554
this.map.setMiniTrailsVisible(false);
15561555
document.getElementById("vehicle-count").style.display = "none";
1557-
document.getElementById("db-size").style.display = "none";
1556+
document.getElementById("db-size").style.display = "";
15581557
vehicleHint.style.display = "none";
15591558
coveragePanelEl.style.display = "block";
15601559
this.updatePlaybackAvailability();

0 commit comments

Comments
 (0)