style: add view data menu active dashboard

main-dlh
Yuri Dimas 2025-10-07 16:51:25 +07:00
parent cd3b026c2f
commit 6915106057
No known key found for this signature in database
GPG Key ID: 9FD7E44BC294C68C
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
@{ @{
Layout = "_LayoutApp"; Layout = "_LayoutApp";
ViewData["Title"] = "Dashboard"; ViewData["Title"] = "Dashboard";
ViewData["DashboardActive"] = "menu-active";
} }

View File

@ -10,7 +10,7 @@
<ul class="menu menu-sidebar bg-base-100 text-base-content min-h-full w-80 p-4"> <ul class="menu menu-sidebar bg-base-100 text-base-content min-h-full w-80 p-4">
<!-- Sidebar content here --> <!-- Sidebar content here -->
<li> <li>
<a class="text-gray-500 menu-active"> <a href="@Url.Action("Index", "Dashboard")" class="text-gray-500 @ViewData["DashboardActive"]">
<span class="icon icon-fill">analytics</span> <span class="icon icon-fill">analytics</span>
Dashboard Dashboard
</a> </a>