fix: fix opening advanced popup for run resetting tag to default

This commit is contained in:
Ruben Fiszel
2025-08-25 14:20:01 +00:00
parent ce4d39d5d3
commit 4c312fffd9
2 changed files with 15 additions and 3 deletions

View File

@@ -77,7 +77,7 @@
}
let {
runnable = $bindable(),
runnable,
runAction,
buttonText = 'Run',
schedulable = true,
@@ -309,7 +309,7 @@
bind:scheduledForStr
bind:invisible_to_owner
bind:overrideTag
bind:runnable
{runnable}
/>
{/snippet}
</Popover>

View File

@@ -70,7 +70,19 @@
{#if !$userStore?.operator}
{#if $workerTags && $workerTags?.length > 0}
<div class="w-full">
<select placeholder="Worker group" bind:value={overrideTag}>
<select
placeholder="Worker group"
bind:value={
() => overrideTag ?? '',
(v) => {
if (v == '') {
overrideTag = undefined
} else {
overrideTag = v
}
}
}
>
{#if overrideTag}
<option value="">reset to default</option>
{:else}