feat(dasboard): Added section headers to main nav

This commit is contained in:
Nicolai Ort 2025-05-01 19:44:42 +02:00
parent 5ac6fe30b5
commit 3a8533a7ba
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
3 changed files with 1017 additions and 1003 deletions

View File

@ -41,6 +41,9 @@
</svg> </svg>
<span>{$_("dashboard-title")}</span> <span>{$_("dashboard-title")}</span>
</a> </a>
<h2 class="px-4 py-2 text-xs font-semibold text-gray-600 uppercase">
{$_("quick-tools")}
</h2>
{#if store.state.jwtinfo.userdetails.permissions.includes("RUNNER:GET") && store.state.jwtinfo.userdetails.permissions.includes("CARD:GET")} {#if store.state.jwtinfo.userdetails.permissions.includes("RUNNER:GET") && store.state.jwtinfo.userdetails.permissions.includes("CARD:GET")}
<a <a
class:activenav={$router.path.includes("/cardassignment/")} class:activenav={$router.path.includes("/cardassignment/")}
@ -60,7 +63,7 @@
/> />
</svg> </svg>
<span>{$_('card_assignment_menu')}</span> <span>{$_("card_assignment_menu")}</span>
</a> </a>
<a <a
class:activenav={$router.path.includes("/cardreplacement/")} class:activenav={$router.path.includes("/cardreplacement/")}
@ -80,8 +83,11 @@
/> />
</svg> </svg>
<span>{$_('card-replacement-menu')}</span> <span>{$_("card-replacement-menu")}</span>
</a> </a>
<h2 class="px-4 py-2 text-xs font-semibold text-gray-600 uppercase">
{$_("management")}
</h2>
<a <a
class:activenav={$router.path.includes("/runners/")} class:activenav={$router.path.includes("/runners/")}
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-200 hover:text-gray-900 w-full font-semibold" class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-200 hover:text-gray-900 w-full font-semibold"
@ -359,6 +365,9 @@
<span>{$_("user-groups")}</span> <span>{$_("user-groups")}</span>
</a> </a>
{/if} {/if}
<h2 class="px-4 py-2 text-xs font-semibold text-gray-600 uppercase">
{$_("system")}
</h2>
<a <a
class:activenav={$router.path === "/settings/"} class:activenav={$router.path === "/settings/"}
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-200 hover:text-gray-900 w-full font-semibold" class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-200 hover:text-gray-900 w-full font-semibold"

View File

@ -530,5 +530,8 @@
"you-have-to-provide-an-organization": "Du musst eine Organisation angeben", "you-have-to-provide-an-organization": "Du musst eine Organisation angeben",
"you-have-to-save-your-changes-to-generate-a-link": "Du musst deine Änderungen speichern, um einen Link zu generieren.", "you-have-to-save-your-changes-to-generate-a-link": "Du musst deine Änderungen speichern, um einen Link zu generieren.",
"you-must-create-at-least-one-card-or-cancel": "Du musst mindestens eine Blankokarte erstellen.", "you-must-create-at-least-one-card-or-cancel": "Du musst mindestens eine Blankokarte erstellen.",
"zip-postal-code": "Postleitzahl" "zip-postal-code": "Postleitzahl",
"quick-tools": "Werkzeuge",
"management": "Verwaltung",
"system": "System"
} }

View File

@ -530,5 +530,7 @@
"you-have-to-provide-an-organization": "You have to provide an organization", "you-have-to-provide-an-organization": "You have to provide an organization",
"you-have-to-save-your-changes-to-generate-a-link": "You have to save your changes to generate a link.", "you-have-to-save-your-changes-to-generate-a-link": "You have to save your changes to generate a link.",
"you-must-create-at-least-one-card-or-cancel": "You must create at least one card.", "you-must-create-at-least-one-card-or-cancel": "You must create at least one card.",
"zip-postal-code": "ZIP/ postal code" "zip-postal-code": "ZIP/ postal code",
"quick-tools": "Tools",
"system": "System"
} }