diff --git a/frontend/src/routes/dashboard/team/+page.svelte b/frontend/src/routes/dashboard/team/+page.svelte index 773cdf4..f17311b 100644 --- a/frontend/src/routes/dashboard/team/+page.svelte +++ b/frontend/src/routes/dashboard/team/+page.svelte @@ -50,7 +50,6 @@ let nameInputEl = $state(null); // Copy state - let copiedSlug = $state(false); let copiedId = $state(false); // Add member dialog @@ -139,16 +138,11 @@ savingName = false; } - async function copyToClipboard(text: string, which: 'slug' | 'id') { + async function copyToClipboard(text: string) { try { await navigator.clipboard.writeText(text); - if (which === 'slug') { - copiedSlug = true; - setTimeout(() => (copiedSlug = false), 2000); - } else { - copiedId = true; - setTimeout(() => (copiedId = false), 2000); - } + copiedId = true; + setTimeout(() => (copiedId = false), 2000); } catch { toast.error('Copy failed — select the text and copy manually.'); } @@ -514,115 +508,58 @@ - -
- -
-
-
- Slug -
- {team.slug} -
- -
- - -
-
-
- Team ID -
- {team.id} + Team ID
-
+