(buttonHover = true)} on:mouseleave={() => (buttonHover = false)} on:click={(e) => {
+
(buttonHover = true)}
+ on:mouseleave={() => (buttonHover = false)}
+ on:click={(e) => {
buttonHover = false
- dispatch('selectedIteration', { manuallySet: false })}
- }>
+ dispatch('selectedIteration', { manuallySet: false })
+ }}
+ >
{#if buttonHover}
{:else}
@@ -50,45 +61,50 @@
{/if}
-
-
-
- #{selected == -1 ? '?' : selected + 1}
-
-
-
+
+
+
+
+ #{selected == -1 ? '?' : selected + 1}
+
+
+
-
-
-
- {#each flowJobs ?? [] as id, idx (id)}
- {#if filter == undefined || (idx + 1).toString().includes(filter.toString())}
-
- {
- //close()
- dispatch('selectedIteration', { index: idx, id, manuallySet: true })
- }}
- role="menuitem"
- tabindex="-1"
- >
- #{idx + 1}
-
-
- {/if}
- {/each}
-
+
+
+
+
+ {#each flowJobs ?? [] as id, idx (id)}
+ {#if filter == undefined || (idx + 1).toString().includes(filter.toString())}
+ {
+ dispatch('selectedIteration', { index: idx, id, manuallySet: true })
+ }}
+ role="menuitem"
+ tabindex="-1"
+ use:melt={item}
+ >
+ #{idx + 1}
+
+ {/if}
+ {/each}
+
+
+
+
diff --git a/frontend/src/lib/components/meltComponents/Menu.svelte b/frontend/src/lib/components/meltComponents/Menu.svelte
index a63de65874..44a96cae7f 100644
--- a/frontend/src/lib/components/meltComponents/Menu.svelte
+++ b/frontend/src/lib/components/meltComponents/Menu.svelte
@@ -31,6 +31,10 @@
const sync = createSync(states)
$: sync.open(open, (v) => (open = Boolean(v)))
+
+ export function close() {
+ open = false
+ }
diff --git a/frontend/src/lib/components/meltComponents/index.ts b/frontend/src/lib/components/meltComponents/index.ts
new file mode 100644
index 0000000000..19712b5f77
--- /dev/null
+++ b/frontend/src/lib/components/meltComponents/index.ts
@@ -0,0 +1,2 @@
+export { default as Menu } from './Menu.svelte'
+export { default as Menubar } from './Menubar.svelte'