refactor(tools): Move tools to tools route

This commit is contained in:
Nicolai Ort 2025-05-01 19:52:08 +02:00
parent e4f9b1a605
commit 16dc789db5
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
2 changed files with 9 additions and 11 deletions

View File

@ -133,13 +133,11 @@
<RunnerDetail {params} />
</Route>
</Route>
<Route path="/cardassignment/*">
<Route path="/">
<Route path="/tools/*">
<Route path="/cardassignment/">
<CardAssignment />
</Route>
</Route>
<Route path="/cardreplacement/*">
<Route path="/">
<Route path="/cardreplacement/">
<CardReplacement />
</Route>
</Route>

View File

@ -46,9 +46,9 @@
</h2>
{#if store.state.jwtinfo.userdetails.permissions.includes("RUNNER:GET") && store.state.jwtinfo.userdetails.permissions.includes("CARD:GET")}
<a
class:activenav={$router.path.includes("/cardassignment/")}
class:activenav={$router.path.includes("/tools/cardassignment/")}
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-200 hover:text-gray-900 w-full font-semibold"
href="/cardassignment/"
href="/tools/cardassignment/"
>
<svg
xmlns="http://www.w3.org/2000/svg"
@ -66,9 +66,9 @@
<span>{$_("card_assignment_menu")}</span>
</a>
<a
class:activenav={$router.path.includes("/cardreplacement/")}
class:activenav={$router.path.includes("/tools/cardreplacement/")}
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-200 hover:text-gray-900 w-full font-semibold"
href="/cardreplacement/"
href="/tools/cardreplacement/"
>
<svg
xmlns="http://www.w3.org/2000/svg"