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:
@@ -5,7 +5,7 @@
|
||||
<script lang="ts">
|
||||
import { onMount, onDestroy } from 'svelte';
|
||||
import { t } from '$lib/i18n';
|
||||
import { fetchEventLog, fetchEventLogStats, clearAllEvents } from '$lib/api';
|
||||
import { fetchEventLog, fetchEventLogStats, clearAllEvents, deleteEvent } from '$lib/api';
|
||||
import ConfirmDialog from '$lib/components/ConfirmDialog.svelte';
|
||||
import { toasts } from '$lib/stores/toast';
|
||||
import { connectGlobalEvents, type SSEConnection, type EventLogSSEPayload } from '$lib/sse';
|
||||
@@ -275,6 +275,15 @@
|
||||
<EventLogEntryComponent
|
||||
{entry}
|
||||
isNew={newEventIds.has(entry.id)}
|
||||
ondelete={async (id) => {
|
||||
try {
|
||||
await deleteEvent(id);
|
||||
events = events.filter(e => e.id !== id);
|
||||
stats = { ...stats, total: Math.max(0, stats.total - 1) };
|
||||
} catch (err) {
|
||||
toasts.error(err instanceof Error ? err.message : 'Failed to delete event');
|
||||
}
|
||||
}}
|
||||
/>
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user