This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-09 17:30:02 -05:00
1 parent 951f96021a
commit 252e6fd855
4 files changed
+31 -8

No files matched your search

+14 -7
View File
@@ -15,6 +15,11 @@
onMount(async () => {
if ($user?.role !== 'admin') {
await goto('/');
} else if (
!$config?.features?.enable_plugins &&
$page.url.pathname.includes('/admin/functions')
) {
await goto('/admin');
}
loaded = true;
});
@@ -85,13 +90,15 @@
href="/admin/evaluations">{$i18n.t('Evaluations')}</a
>
<a
draggable="false"
class="min-w-fit p-1.5 {$page.url.pathname.includes('/admin/functions')
? ''
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition select-none"
href="/admin/functions">{$i18n.t('Functions')}</a
>
{#if $config?.features?.enable_plugins}
<a
draggable="false"
class="min-w-fit p-1.5 {$page.url.pathname.includes('/admin/functions')
? ''
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition select-none"
href="/admin/functions">{$i18n.t('Functions')}</a
>
{/if}
<a
draggable="false"