diff --git a/frontend/src/lib/components/schema/SchemaPickerRow.svelte b/frontend/src/lib/components/schema/SchemaPickerRow.svelte index 00ac82fee9d59..bf287f6bdd557 100644 --- a/frontend/src/lib/components/schema/SchemaPickerRow.svelte +++ b/frontend/src/lib/components/schema/SchemaPickerRow.svelte @@ -54,6 +54,8 @@ day: 'numeric' }).format(date) } + + $: hovering ? dispatch('hover', true) : dispatch('hover', false) - {#if captureInfo.active} - - {:else} - - {/if} - {captureInfo.active ? 'Stop' : 'Start capturing'} +
+ {#if captureInfo.active} + + {:else} + + {/if} + {captureInfo.active ? 'Stop' : 'Start capturing'} +
diff --git a/frontend/src/lib/components/triggers/CaptureTable.svelte b/frontend/src/lib/components/triggers/CaptureTable.svelte index db030bd03a48c..45c671f160045 100644 --- a/frontend/src/lib/components/triggers/CaptureTable.svelte +++ b/frontend/src/lib/components/triggers/CaptureTable.svelte @@ -31,8 +31,10 @@ export let hideCapturesWhenEmpty = false export let canEdit = false export let captureActive = false + let captures: Capture[] = [] let selected: number | undefined = undefined + let hovered: number | undefined = undefined let testKind: 'preprocessor' | 'main' = 'main' let hasMore = false let page = 1 @@ -74,6 +76,7 @@ let hasAlreadyFailed = false export async function loadCaptures(refresh?: boolean) { + console.log('dbg: loadCaptures', refresh) hasMore = false try { @@ -94,6 +97,7 @@ } else { if (refresh) { captures = newCaptures + page = 1 } else { captures = [...captures, ...newCaptures] } @@ -215,16 +219,16 @@ ...payload, ...triggerExtra } - : payload} + : { ...payload }} {@const captureIcon = captureKindToIcon[capture.trigger_kind]} handleSelect(capture)} selected={selected === capture.id} + on:hover={(e) => (hovered = e.detail ? capture.id : undefined)} >
@@ -268,7 +272,9 @@ {:else}