fix svelte issues
Continuous Integration / backend-tests (push) Successful in 57s
Continuous Integration / frontend-check (push) Successful in 27s
Continuous Integration / e2e-tests (push) Successful in 7m1s

This commit is contained in:
2026-05-01 13:25:00 -04:00
parent e939e6a86d
commit d6250986b8
3 changed files with 6 additions and 6 deletions
File diff suppressed because one or more lines are too long
@@ -256,7 +256,7 @@
variant="ghost"
size="icon"
class="h-7 w-7 text-text-secondary hover:text-blue-400 hover:bg-blue-500/10"
onclick={(e) => { e.stopPropagation(); onUndoDismiss(); }}
onclick={(e: MouseEvent) => { e.stopPropagation(); onUndoDismiss(); }}
title="Undo dismiss"
>
<Undo2 size={14} />
@@ -267,7 +267,7 @@
variant="ghost"
size="icon"
class="h-7 w-7 text-text-secondary hover:text-red-400 hover:bg-red-500/10"
onclick={(e) => { e.stopPropagation(); onDelete(); }}
onclick={(e: MouseEvent) => { e.stopPropagation(); onDelete(); }}
title="Delete permanently"
>
<Trash2 size={14} />
@@ -17,8 +17,8 @@
browseDiscrepanciesGet,
getDiscrepanciesTreeGet,
type DiscrepancySchema,
type FileItem
} from '$lib/api';
import { type FileItem } from '$lib/types';
import { POLL_FAST } from '$lib/config';
let discrepancies = $state<DiscrepancySchema[]>([]);
@@ -39,9 +39,9 @@
files = response.data.map((d: DiscrepancySchema) => ({
name: d.path.split('/').pop() || d.path,
path: d.path,
type: d.is_deleted ? 'file' : 'file',
type: 'file',
size: d.size,
mtime: d.mtime,
mtime: d.mtime ? new Date(d.mtime).getTime() / 1000 : undefined,
discrepancy_id: d.id,
is_deleted: d.is_deleted,
has_versions: d.has_versions,