Co-authored-by: Tim Baek <tim@openwebui.com> Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Tim Baek
Claude
parent
90c0c5da00
commit
0b0962a2ae
@@ -727,22 +727,20 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if filterIds.length > 0}
|
{@const toggleableFilters = $functions.filter(
|
||||||
{@const toggleableFilters = ($functions ?? []).filter(
|
(func) =>
|
||||||
(func) =>
|
func.type === 'filter' &&
|
||||||
func.type === 'filter' &&
|
(filterIds.includes(func.id) || func?.is_global) &&
|
||||||
(filterIds.includes(func.id) || func?.is_global) &&
|
func?.meta?.toggle
|
||||||
func?.meta?.toggle
|
)}
|
||||||
)}
|
|
||||||
|
|
||||||
{#if toggleableFilters.length > 0}
|
{#if toggleableFilters.length > 0}
|
||||||
<div class="my-2">
|
<div class="my-2">
|
||||||
<DefaultFiltersSelector
|
<DefaultFiltersSelector
|
||||||
bind:selectedFilterIds={defaultFilterIds}
|
bind:selectedFilterIds={defaultFilterIds}
|
||||||
filters={toggleableFilters}
|
filters={toggleableFilters}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user