Remove useless search button

This commit is contained in:
Corinne Durrmeyer 2024-09-30 14:45:38 +02:00
parent 741df66107
commit a000c3335e
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6

View file

@ -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