diff --git a/src/lib/components/EventKindFilter.svelte b/src/lib/components/EventKindFilter.svelte index 599d476..1a5f5d9 100644 --- a/src/lib/components/EventKindFilter.svelte +++ b/src/lib/components/EventKindFilter.svelte @@ -4,9 +4,11 @@ import { CloseCircleOutline } from 'flowbite-svelte-icons'; let { - onReload = () => {} + onReload = () => {}, + eventCounts = {} } = $props<{ onReload?: () => void; + eventCounts?: { [kind: number]: number }; }>(); let newKind = $state(''); @@ -76,16 +78,21 @@
{#each $visualizationConfig.allowedKinds as kind} {@const isDisabled = $visualizationConfig.disabledKinds.includes(kind)} + {@const isLoaded = (eventCounts[kind] || 0) > 0} + {@const borderColor = isLoaded ? 'border-green-500' : 'border-red-500'}
+
+

+ + Green border = Events loaded +

+

+ + Red border = Not loaded (click Reload to fetch) +

+
+