Delay manual snapshot refresh to five seconds
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
const SNAPSHOT_REFRESH_DELAY_MS = 2000;
|
const SNAPSHOT_REFRESH_DELAY_MS = 5000;
|
||||||
|
|
||||||
function formatRemaining(totalSeconds) {
|
function formatRemaining(totalSeconds) {
|
||||||
const seconds = Math.max(0, Math.ceil(totalSeconds));
|
const seconds = Math.max(0, Math.ceil(totalSeconds));
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ class UiRenderTest(unittest.TestCase):
|
|||||||
def test_manual_snapshot_refresh_waits_before_fetch(self):
|
def test_manual_snapshot_refresh_waits_before_fetch(self):
|
||||||
script = Path("frigate_camera_control_bridge/static/app.js").read_text(encoding="utf-8")
|
script = Path("frigate_camera_control_bridge/static/app.js").read_text(encoding="utf-8")
|
||||||
|
|
||||||
self.assertIn("SNAPSHOT_REFRESH_DELAY_MS = 2000", script)
|
self.assertIn("SNAPSHOT_REFRESH_DELAY_MS = 5000", script)
|
||||||
self.assertIn("window.setTimeout", script)
|
self.assertIn("window.setTimeout", script)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user