From 405af63b47a833616e3815922754650fda04dfc7 Mon Sep 17 00:00:00 2001 From: Yuri Dimas Date: Wed, 17 Dec 2025 12:15:59 +0700 Subject: [PATCH] fix: open menu collapse --- Views/Shared/_SidebarUnified.cshtml | 79 +++++++++++++++-------------- 1 file changed, 42 insertions(+), 37 deletions(-) diff --git a/Views/Shared/_SidebarUnified.cshtml b/Views/Shared/_SidebarUnified.cshtml index 2d78cdc..712043e 100644 --- a/Views/Shared/_SidebarUnified.cshtml +++ b/Views/Shared/_SidebarUnified.cshtml @@ -1,5 +1,10 @@ +@using Microsoft.AspNetCore.Mvc.Controllers + @{ - var controller = ViewContext.RouteData.Values["controller"] as string; + var d = ViewContext.ActionDescriptor as ControllerActionDescriptor; + var ns = d?.ControllerTypeInfo?.Namespace; + var module = ns?.Split('.').Last(); + var controller = d?.ControllerName; } @@ -69,37 +74,37 @@
  • -
    +
    Data
  • -
    +
    Transaksi
  • @@ -131,43 +136,43 @@
  • -
    +
    Wilayah
  • -
    +
    Master Data