fix: improve workspace selection for default tag settings

This commit is contained in:
Ruben Fiszel
2025-04-01 20:19:11 +00:00
parent afe3d74fa8
commit 670d2e9c04

View File

@@ -62,7 +62,7 @@
</div>
{/each}
</div>
<div class="py-4 flex flex-col gap-2">
<div id="default-tags-settings" class="py-4 flex flex-col gap-2">
<Toggle
bind:checked={defaultTagPerWorkspace}
options={{ right: 'workspace specific default tags' }}
@@ -70,7 +70,11 @@
{#if defaultTagPerWorkspace}
<Toggle bind:checked={limitToWorkspaces} options={{ right: 'only for some workspaces' }} />
{#if limitToWorkspaces}
<MultiSelectWrapper items={workspaces} bind:value={defaultTagWorkspaces} />
<MultiSelectWrapper
target="#default-tags-settings"
items={workspaces}
bind:value={defaultTagWorkspaces}
/>
{/if}
{/if}
</div>