From dc4db405d2991d3ec6a114f3b08d3fccd057d3ee Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Thu, 13 Feb 2025 17:52:16 +0100
Subject: frontend: Migrate to Svelte 5

---
 frontend/src/lib/components/SubmitButton.svelte | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'frontend/src/lib/components/SubmitButton.svelte')

diff --git a/frontend/src/lib/components/SubmitButton.svelte b/frontend/src/lib/components/SubmitButton.svelte
index 8ac90b9..3b89ba7 100644
--- a/frontend/src/lib/components/SubmitButton.svelte
+++ b/frontend/src/lib/components/SubmitButton.svelte
@@ -1,7 +1,7 @@
 <script lang="ts">
-	export let active = false;
+	let { pending = false }: { pending?: boolean } = $props();
 
-	$: title = active ? 'Save pending changes' : 'Save (no changes pending)';
+	let title = $derived(pending ? 'Save pending changes' : 'Save (no changes pending)');
 </script>
 
-<button type="submit" class:active class="btn-slate [&.active]:btn-blue" {title}>Save</button>
+<button type="submit" class:pending class="btn-slate [&.pending]:btn-blue" {title}>Save</button>
-- 
cgit v1.2.3-2-gb3c3

