Skip to content

A live bird collage card for your Home Assistant dashboard.

clear_all_data warning

mcguirepr8999f5b39822b0
diff --git a/scripts/system_controls.php b/scripts/system_controls.php
index 0339142e..cf48963d 100644
--- a/scripts/system_controls.php
+++ b/scripts/system_controls.php
@@ -7,12 +7,12 @@
<button type="submit" name="submit" value="sudo reboot" onclick="return confirm('Are you sure you want to reboot?')">Reboot</button>
</form>
<form action="" method="POST">
- <button type="submit" name="submit" value="update_birdnet.sh">Update</button>
+ <button type="submit" name="submit" value="update_birdnet.sh" onclick="return confirm('Are you sure you want to update?')">Update</button>
</form>
<form action="" method="POST">
<button type="submit" name="submit" value="sudo shutdown now" onclick="return confirm('Are you sure you want to shutdown?')">Shutdown</button>
</form>
<form action="" method="POST">
- <button type="submit" name="submit" value="sudo clear_all_data.sh" onclick="return confirm('Clear ALL Data? This cannot be undone.')">Clear ALL data</button>
+ <button type="submit" name="submit" value="sudo clear_all_data.sh" onclick="return confirm('Clear ALL Data? Note that this cannot be undone and will take up to 90 seconds.')">Clear ALL data</button>
</form>
</div>