From 390c4fb4ea8432083261d3b8f9601b9ba8edfced Mon Sep 17 00:00:00 2001 From: harry Date: Sat, 12 Sep 2026 21:31:48 +0500 Subject: [PATCH] fix admin tabs --- src/routes/admin/+layout.svelte | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/routes/admin/+layout.svelte b/src/routes/admin/+layout.svelte index a8c2205..d9618f4 100644 --- a/src/routes/admin/+layout.svelte +++ b/src/routes/admin/+layout.svelte @@ -4,21 +4,15 @@ const tabs = [ { href: '/admin/reports', key: 'admin.tabs.reports' }, - { href: '/admin/categories', key: 'admin.tabs.categories' }, - { href: '/admin/backups', key: 'admin.tabs.backups' } + { href: '/admin/categories', key: 'admin.tabs.categories' } ]; - - $: current = $page.url.pathname; - function isActive(href) { - return current === href || current.startsWith(href + '/'); - }

{$t('admin.title')}