Revert "feat: [tenant] 컨텍스트 메뉴 테넌트 설정 + 콘솔 사이드바 DB 메뉴 적용"
This reverts commit cb254cf138.
This commit is contained in:
@@ -64,18 +64,5 @@ public function boot(): void
|
||||
'favoriteMenuIds' => $menuService->getFavoriteMenuIds(),
|
||||
]);
|
||||
});
|
||||
|
||||
// 테넌트 콘솔 사이드바에 해당 테넌트의 메뉴 데이터 전달
|
||||
View::composer('partials.tenant-console-sidebar', function ($view) {
|
||||
$tenantId = $view->getData()['consoleTenantId'] ?? request()->route('tenantId');
|
||||
if ($tenantId) {
|
||||
$menuService = app(SidebarMenuService::class);
|
||||
$menusBySection = $menuService->getTenantMenusBySection((int) $tenantId);
|
||||
|
||||
$view->with([
|
||||
'tenantMainMenus' => $menusBySection['main'],
|
||||
]);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user