fix: per-event delete button, Docker network default, polling interval duration parsing

- Add per-event delete button (trash icon on hover) in event log entries
- Set Docker network default to 'docker-watcher' in DB schema + migration for existing DBs
- Parse Go duration strings (5m, 1h) to seconds in settings UI, convert back on save
- Clear error when network is empty in deployer instead of hidden fallback
This commit is contained in:
2026-04-05 02:02:03 +03:00
parent c26c41e6a1
commit f71f2275a2
5 changed files with 53 additions and 5 deletions
+13 -1
View File
@@ -5,13 +5,15 @@
<script lang="ts">
import type { EventLogEntry } from '$lib/types';
import { t } from '$lib/i18n';
import { IconTrash } from '$lib/components/icons';
interface Props {
entry: EventLogEntry;
isNew?: boolean;
ondelete?: (id: number) => void;
}
const { entry, isNew = false }: Props = $props();
const { entry, isNew = false, ondelete }: Props = $props();
let expanded = $state(false);
@@ -82,6 +84,16 @@
<span class="ml-auto shrink-0 text-[var(--text-tertiary)] tabular-nums" title={formatFull(entry.created_at)}>
{timeAgo(entry.created_at)}
</span>
{#if ondelete}
<button
type="button"
title={$t('common.delete')}
onclick={() => ondelete(entry.id)}
class="shrink-0 rounded p-0.5 text-[var(--text-tertiary)] opacity-0 group-hover:opacity-100 hover:text-[var(--color-danger)] transition-all"
>
<IconTrash size={12} />
</button>
{/if}
</div>
<!-- Message -->