D2: simplify JobErrorLine — optional props, no retrying state, no icon

This commit is contained in:
Giancarmine Salucci
2026-07-17 17:29:19 +00:00
parent 0cea78c101
commit 4ca532b873
+2 -2
View File
@@ -5,7 +5,7 @@
job: Job;
accentColor: string;
onRetry?: (jobId: string) => void;
onDelete?: () => void;
onDelete?: (jobId: string) => void;
retryLabel?: string;
deleteLabel?: string;
}
@@ -33,7 +33,7 @@
<button class="retry-btn" onclick={handleRetry} aria-label={retryLabel}>{retryLabel}</button>
{/if}
{#if onDelete}
<button class="delete-btn" onclick={onDelete} aria-label={deleteLabel}>{deleteLabel}</button>
<button class="delete-btn" onclick={(e) => { e.preventDefault(); e.stopPropagation(); onDelete?.(job.id); }} aria-label={deleteLabel}>{deleteLabel}</button>
{/if}
</div>
{:else if job.status === 'cancelled'}