enh: ENABLE_ADMIN_ANALYTICS
This commit is contained in:
1 parent
45e23c3ad0
commit
35598b8017
6 files changed
+36
-4
No files matched your search
@@ -2,7 +2,7 @@
|
||||
import { onMount, getContext } from 'svelte';
|
||||
import { goto } from '$app/navigation';
|
||||
|
||||
import { WEBUI_NAME, mobile, showSidebar, user } from '$lib/stores';
|
||||
import { WEBUI_NAME, config, mobile, showSidebar, user } from '$lib/stores';
|
||||
import { page } from '$app/stores';
|
||||
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
||||
|
||||
@@ -66,12 +66,14 @@
|
||||
href="/admin">{$i18n.t('Users')}</a
|
||||
>
|
||||
|
||||
{#if $config?.features.enable_admin_analytics ?? true}
|
||||
<a
|
||||
class="min-w-fit p-1.5 {$page.url.pathname.includes('/admin/analytics')
|
||||
? ''
|
||||
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition"
|
||||
href="/admin/analytics">{$i18n.t('Analytics')}</a
|
||||
>
|
||||
{/if}
|
||||
|
||||
<a
|
||||
class="min-w-fit p-1.5 {$page.url.pathname.includes('/admin/evaluations')
|
||||
|
||||
Reference in new issue
Block a user