diff --git a/web/src/routes/admin/quarantine/+page.svelte b/web/src/routes/admin/quarantine/+page.svelte index 6e369b88..e1645999 100644 --- a/web/src/routes/admin/quarantine/+page.svelte +++ b/web/src/routes/admin/quarantine/+page.svelte @@ -2,6 +2,7 @@ import { pageTitle } from '$lib/branding'; import { Music2, RotateCcw, Trash2, Cloud, Play, ChevronRight } from 'lucide-svelte'; import { useQueryClient } from '@tanstack/svelte-query'; + import RowActionsMenu, { type RowAction } from '$lib/components/RowActionsMenu.svelte'; import { createAdminQuarantineQuery, resolveQuarantine, @@ -258,41 +259,19 @@ + {@const primary: RowAction = { icon: RotateCcw, label: 'Resolve', onclick: () => onResolve(r) }} + {@const secondary: RowAction[] = [ + { icon: Play, label: 'Play', onclick: () => onPlay(r) }, + { icon: Trash2, label: 'Delete file', onclick: () => openDeleteFile(r), danger: true } + ]}
- - - - - + {#if lidarrDisabled} @@ -303,7 +282,7 @@
{#if r.status === 'pending'} -
- - - + {@const primary: RowAction = { icon: Check, label: 'Approve', onclick: () => onApprove(r) }} + {@const secondary: RowAction[] = [ + { icon: SlidersHorizontal, label: 'Override', onclick: () => openOverride(r) }, + { icon: X, label: 'Reject', onclick: () => openReject(r), danger: true } + ]} +
+
{/if}