From 0be2b02349ac7b14b673ab55ea187df39c4d3ca0 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sat, 28 Jun 2025 20:07:55 +0200 Subject: [PATCH] Define missing stop_recording/start_recording_classes These variables were referenced but not actually defined. Define them and make the button disabled when rayhunter is stopping/starting --- bin/web/src/lib/components/RecordingControls.svelte | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/web/src/lib/components/RecordingControls.svelte b/bin/web/src/lib/components/RecordingControls.svelte index 70c31c3..0f8c2c9 100644 --- a/bin/web/src/lib/components/RecordingControls.svelte +++ b/bin/web/src/lib/components/RecordingControls.svelte @@ -18,12 +18,18 @@ } const recording_button_classes = "text-white font-bold py-2 px-4 rounded-md flex flex-row gap-1"; + const stop_recording_classes = `${recording_button_classes} bg-red-500 opacity-50 cursor-not-allowed`; + const start_recording_classes = `${recording_button_classes} bg-blue-500 opacity-50 cursor-not-allowed`;
{#if waiting_for_server} - {:else if server_is_recording}