From 165ebb623cb89e0dcf60dacb3092f0f923990c33 Mon Sep 17 00:00:00 2001 From: Marcelo-k-USP Date: Fri, 18 Oct 2024 11:50:20 -0300 Subject: [PATCH] =?UTF-8?q?aplica=20highlight=20nos=20itens=20do=20menu=20?= =?UTF-8?q?em=20todos=20os=20casos=20poss=C3=ADveis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/FilaController.php | 1 + app/Http/Controllers/IndexController.php | 3 +++ app/Http/Controllers/PatrimonioController.php | 2 ++ app/Http/Controllers/UserController.php | 2 +- 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/FilaController.php b/app/Http/Controllers/FilaController.php index 6311e1e1..a1d0fa3f 100644 --- a/app/Http/Controllers/FilaController.php +++ b/app/Http/Controllers/FilaController.php @@ -219,6 +219,7 @@ public function storeTemplateJson(Request $request, Fila $fila) public function createTemplate(Fila $fila) { $this->authorize('filas.update', $fila); + \UspTheme::activeUrl('filas'); $template = json_decode($fila->template, true); return view('filas.template', compact('fila', 'template')); diff --git a/app/Http/Controllers/IndexController.php b/app/Http/Controllers/IndexController.php index 1c2da7e3..bad69ab5 100644 --- a/app/Http/Controllers/IndexController.php +++ b/app/Http/Controllers/IndexController.php @@ -17,16 +17,19 @@ public function index() public function ajuda() { + \UspTheme::activeUrl('ajuda'); return view('ajuda/index'); } public function manual_usuario() { + \UspTheme::activeUrl('ajuda'); return view('ajuda/manual-usuario'); } public function manual_atendente() { + \UspTheme::activeUrl('ajuda'); return view('ajuda/manual-atendente'); } } diff --git a/app/Http/Controllers/PatrimonioController.php b/app/Http/Controllers/PatrimonioController.php index 0fcb3714..4fe9faec 100644 --- a/app/Http/Controllers/PatrimonioController.php +++ b/app/Http/Controllers/PatrimonioController.php @@ -14,6 +14,7 @@ class PatrimonioController extends Controller */ public function index() { + \UspTheme::activeUrl('patrimonios'); $this->authorize('perfiladmin'); $patrimonios = Patrimonio::all(); @@ -49,6 +50,7 @@ public function store(Request $request) */ public function show($numpat) { + \UspTheme::activeUrl('patrimonios'); $this->authorize('perfiladmin'); $patrimonio = Patrimonio::where('numpat', $numpat)->first(); diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 9c7e0e3c..deb6cf5d 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -64,7 +64,7 @@ public function store(Request $request) public function show(User $user) { $this->authorize('users.view', $user); - \UspTheme::activeUrl('users'); + \UspTheme::activeUrl('senhaunica-users'); $oauth_file = 'debug/oauth/' . $user->codpes . '.json';