{$i18n.t('Settings')}
{#if visibleTabs.length > 0} {#each visibleTabs as tabId (tabId)} {#if tabId === 'general'} {:else if tabId === 'interface'} {:else if tabId === 'connections'} {#if $user.role === 'admin' || ($user.role === 'user' && $config?.features?.enable_direct_connections)} {/if} {: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} {/each} {:else}
{$i18n.t('No results found')}
{/if}
{#if selectedTab === 'general'} { toast.success($i18n.t('Settings saved successfully!')); }} /> {:else if selectedTab === 'interface'} { toast.success($i18n.t('Settings saved successfully!')); }} /> {:else if selectedTab === 'connections'} { await saveSettings(updated); toast.success($i18n.t('Settings saved successfully!')); }} /> {:else if selectedTab === 'personalization'} { toast.success($i18n.t('Settings saved successfully!')); }} /> {:else if selectedTab === 'audio'}