From 1b86bcc8a171bbd5d3f5c206cadd2a8a13c63d30 Mon Sep 17 00:00:00 2001 From: Ben Swift Date: Tue, 12 Nov 2024 17:13:41 +1100 Subject: [PATCH] only set up capture widget if there's `capture` in the URL query params --- lib/imaginative_restoration_web/live/app_live.ex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/imaginative_restoration_web/live/app_live.ex b/lib/imaginative_restoration_web/live/app_live.ex index 075c640..a8499a2 100644 --- a/lib/imaginative_restoration_web/live/app_live.ex +++ b/lib/imaginative_restoration_web/live/app_live.ex @@ -21,7 +21,7 @@ defmodule ImaginativeRestorationWeb.AppLive do
- <.webcam_capture capture_interval={30_000} /> + <.webcam_capture :if={@capture} capture_interval={30_000} />