From a000c3335e1c02ec5b1dd207b16e83f5b1294923 Mon Sep 17 00:00:00 2001 From: Corinne Durrmeyer Date: Mon, 30 Sep 2024 14:45:38 +0200 Subject: [PATCH] Remove useless search button --- app/views/layouts/_header.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/_header.haml b/app/views/layouts/_header.haml index 6b1e1ab47..896f0030f 100644 --- a/app/views/layouts/_header.haml +++ b/app/views/layouts/_header.haml @@ -6,7 +6,7 @@ - is_administrateur_context = nav_bar_profile == :administrateur && administrateur_signed_in? - is_expert_context = nav_bar_profile == :expert && expert_signed_in? - is_user_context = nav_bar_profile == :user -- is_search_enabled = [params[:controller] == 'recherche', is_instructeur_context, is_expert_context, is_user_context && current_user.dossiers.count].any? +- is_search_enabled = [params[:controller] == 'recherche', is_instructeur_context, is_expert_context].any? %header{ class: ["fr-header", content_for?(:notice_info) && "fr-header__with-notice-info"], role: "banner", "data-controller": "dsfr-header" } %nav{ :role => "navigation", "aria-label" => t('layouts.header.main_menu') } .fr-header__body