From c20697f0d712ed0ee6684ca276403e8046531074 Mon Sep 17 00:00:00 2001 From: Marcel Folaron Date: Thu, 21 Nov 2024 15:59:24 -0500 Subject: [PATCH] partial fix for project menu --- app/Core/Controller/Frontcontroller.php | 2 + .../Menu/Hxcontrollers/ProjectSelector.php | 2 +- .../includes/projectListFilter.blade.php | 59 +++---- .../projectSelectorDropdown.blade.php | 164 +++++++++--------- .../elements/leadingVisual.blade.php | 10 +- .../components/forms/select/index.blade.php | 30 ++-- public/assets/less/components/select.css | 50 ++++-- 7 files changed, 171 insertions(+), 146 deletions(-) diff --git a/app/Core/Controller/Frontcontroller.php b/app/Core/Controller/Frontcontroller.php index ac345e9116..6aa5378aa9 100644 --- a/app/Core/Controller/Frontcontroller.php +++ b/app/Core/Controller/Frontcontroller.php @@ -177,6 +177,8 @@ public function parseRequestParts(IncomingRequest $request) public function executeAction(string $controller, string $method): Response { + $this->incomingRequest->overrideGlobals(); + $parameters = $this->incomingRequest->getRequestParams(); $controllerClass = app()->make($controller); diff --git a/app/Domain/Menu/Hxcontrollers/ProjectSelector.php b/app/Domain/Menu/Hxcontrollers/ProjectSelector.php index 63c7374cfe..52c6bb804f 100644 --- a/app/Domain/Menu/Hxcontrollers/ProjectSelector.php +++ b/app/Domain/Menu/Hxcontrollers/ProjectSelector.php @@ -34,7 +34,7 @@ public function init(Timesheets $timesheetService, Menu $menuService, \Leantime\ /** * @throws BindingResolutionException */ - public function updateMenu(): void + public function updateMenu($params): void { $allAssignedprojects = diff --git a/app/Domain/Menu/Templates/includes/projectListFilter.blade.php b/app/Domain/Menu/Templates/includes/projectListFilter.blade.php index 0d3c6fc722..1af0cae4cf 100644 --- a/app/Domain/Menu/Templates/includes/projectListFilter.blade.php +++ b/app/Domain/Menu/Templates/includes/projectListFilter.blade.php @@ -1,41 +1,42 @@ -
+
-
- - - - All Clients - + - @foreach ($clients as $client) - @if ($client['id'] > 0) - - {{ $client['name'] }} - - @endif - @endforeach - - - - - - @foreach ($projectSelectGroupOptions as $key => $group) - - {{ $group }} +
+ + + + + + All Clients - @endforeach - + @foreach ($clients as $client) + @if ($client['id'] > 0) + + {{ $client['name'] }} + + @endif + @endforeach + + + + + + + @foreach ($projectSelectGroupOptions as $key => $group) + + {{ $group }} + + @endforeach + +
-
+
diff --git a/app/Domain/Menu/Templates/includes/projectSelectorDropdown.blade.php b/app/Domain/Menu/Templates/includes/projectSelectorDropdown.blade.php index 3417c81c35..49a25cf1fd 100644 --- a/app/Domain/Menu/Templates/includes/projectSelectorDropdown.blade.php +++ b/app/Domain/Menu/Templates/includes/projectSelectorDropdown.blade.php @@ -5,94 +5,100 @@