diff --git a/web/src/routes/admin/quarantine/+page.svelte b/web/src/routes/admin/quarantine/+page.svelte
index e1645999..6569b360 100644
--- a/web/src/routes/admin/quarantine/+page.svelte
+++ b/web/src/routes/admin/quarantine/+page.svelte
@@ -181,6 +181,11 @@
{#each rows as r (r.track_id)}
{@const isExpanded = !!expanded[r.track_id]}
{@const lidarrDisabled = !r.lidarr_album_mbid}
+ {@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 }
+ ]}
- {@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 }
- ]}
diff --git a/web/src/routes/admin/users/+page.svelte b/web/src/routes/admin/users/+page.svelte
index 93d06797..95634ed2 100644
--- a/web/src/routes/admin/users/+page.svelte
+++ b/web/src/routes/admin/users/+page.svelte
@@ -235,6 +235,33 @@
{:else}
{#each users as u (u.id)}
+ {@const primary: RowAction = {
+ icon: u.is_admin ? ShieldOff : Shield,
+ label: u.is_admin ? 'Remove admin' : 'Make admin',
+ onclick: () => onToggleAdmin(u),
+ disabled: saving
+ }}
+ {@const secondary: RowAction[] = [
+ {
+ icon: u.auto_approve_requests ? XCircle : CheckCircle2,
+ label: u.auto_approve_requests ? 'Disable auto-approve' : 'Enable auto-approve',
+ onclick: () => onToggleAutoApprove(u),
+ disabled: saving
+ },
+ {
+ icon: KeyRound,
+ label: 'Reset password',
+ onclick: () => { resetPasswordTarget = u; },
+ disabled: saving
+ },
+ {
+ icon: Trash2,
+ label: 'Delete',
+ onclick: () => { confirmDeleteTarget = u; },
+ disabled: saving,
+ danger: true
+ }
+ ]}
-
@@ -256,33 +283,6 @@
{#if u.display_name}{u.display_name} ยท {/if}created {formatDate(u.created_at)}
- {@const primary: RowAction = {
- icon: u.is_admin ? ShieldOff : Shield,
- label: u.is_admin ? 'Remove admin' : 'Make admin',
- onclick: () => onToggleAdmin(u),
- disabled: saving
- }}
- {@const secondary: RowAction[] = [
- {
- icon: u.auto_approve_requests ? XCircle : CheckCircle2,
- label: u.auto_approve_requests ? 'Disable auto-approve' : 'Enable auto-approve',
- onclick: () => onToggleAutoApprove(u),
- disabled: saving
- },
- {
- icon: KeyRound,
- label: 'Reset password',
- onclick: () => { resetPasswordTarget = u; },
- disabled: saving
- },
- {
- icon: Trash2,
- label: 'Delete',
- onclick: () => { confirmDeleteTarget = u; },
- disabled: saving,
- danger: true
- }
- ]}