From 9e6595705e33df167d2eeb989b4e9edc58eca824 Mon Sep 17 00:00:00 2001 From: dannyl1u Date: Tue, 5 Nov 2024 20:06:37 -0800 Subject: [PATCH] feat: settings search - no results found --- src/lib/components/chat/SettingsModal.svelte | 378 ++++++++++--------- 1 file changed, 193 insertions(+), 185 deletions(-) diff --git a/src/lib/components/chat/SettingsModal.svelte b/src/lib/components/chat/SettingsModal.svelte index 3a556a035..2e531fe50 100644 --- a/src/lib/components/chat/SettingsModal.svelte +++ b/src/lib/components/chat/SettingsModal.svelte @@ -235,6 +235,8 @@ 'details', 'aboutus', 'softwareinfo', + 'timothyjaeryangbaek', + 'openwebui', 'release', 'updates', 'updateinfo', @@ -391,210 +393,216 @@ on:input={searchDebounceHandler} placeholder={$i18n.t('Search')} /> - {#each visibleTabs as tabId (tabId)} - {#if tabId === 'general'} - - {:else if tabId === 'interface'} - - {:else if tabId === 'personalization'} - - {:else if tabId === 'audio'} - - {:else if tabId === 'chats'} - - {:else if tabId === 'account'} - - {:else if tabId === 'about'} - - {:else if tabId === 'admin'} - {#if $user.role === 'admin'} + {#if visibleTabs.length > 0} + {#each visibleTabs as tabId (tabId)} + {#if tabId === 'general'} + {:else if tabId === 'interface'} + + {:else if tabId === 'personalization'} + + {:else if tabId === 'audio'} + + {:else if tabId === 'chats'} + + {:else if tabId === 'account'} + + {:else if tabId === 'about'} + + {:else if tabId === 'admin'} + {#if $user.role === 'admin'} + + {/if} {/if} - {/if} - {/each} + {/each} + {:else} +
+ {$i18n.t('No results found')} +
+ {/if}
{#if selectedTab === 'general'}