diff --git a/web/src/routes/admin/users/+page.svelte b/web/src/routes/admin/users/+page.svelte index 99f390ec..96d5aa19 100644 --- a/web/src/routes/admin/users/+page.svelte +++ b/web/src/routes/admin/users/+page.svelte @@ -20,7 +20,7 @@ import { pushToast } from '$lib/stores/toast.svelte'; import Modal from '$lib/components/Modal.svelte'; import RowActionsMenu, { type RowAction } from '$lib/components/RowActionsMenu.svelte'; - import { Shield, ShieldOff, CheckCircle2, XCircle, KeyRound, Trash2 } from 'lucide-svelte'; + import { Shield, ShieldOff, CheckCircle2, XCircle, KeyRound, Trash2, Copy } from 'lucide-svelte'; const client = useQueryClient(); @@ -329,23 +329,24 @@ expires {formatDate(inv.expires_at)} - - + copyToken(inv.token) + }} + secondary={[ + { + icon: Trash2, + label: 'Revoke', + ariaLabel: `Revoke invite ${inv.token}`, + onclick: () => onRevokeInvite(inv), + danger: true, + disabled: saving + } + ]} + /> {/each}