From 765281e1c3a19f8d28da501c96e8433eb69bb59c Mon Sep 17 00:00:00 2001 From: Eric Leroy-Terquem Date: Fri, 6 Sep 2024 10:46:28 +0200 Subject: [PATCH] chore(flipper): remove gallery_demande feature flag --- app/views/shared/champs/piece_justificative/_show.html.haml | 2 +- app/views/shared/dossiers/_demande.html.haml | 2 +- config/initializers/flipper.rb | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/shared/champs/piece_justificative/_show.html.haml b/app/views/shared/champs/piece_justificative/_show.html.haml index ef216dc3a..70041de21 100644 --- a/app/views/shared/champs/piece_justificative/_show.html.haml +++ b/app/views/shared/champs/piece_justificative/_show.html.haml @@ -1,5 +1,5 @@ .fr-downloads-group - - if profile == 'instructeur' && feature_enabled?(:gallery_demande) + - if profile == 'instructeur' .gallery-items-list - champ.piece_justificative_file.attachments.with_all_variant_records.each do |attachment| .gallery-item diff --git a/app/views/shared/dossiers/_demande.html.haml b/app/views/shared/dossiers/_demande.html.haml index 6bb7f5fc1..62d8f989f 100644 --- a/app/views/shared/dossiers/_demande.html.haml +++ b/app/views/shared/dossiers/_demande.html.haml @@ -2,7 +2,7 @@ - content_for(:notice_info) do = render partial: "shared/dossiers/france_connect_informations_notice", locals: { user_information: dossier.user.france_connect_informations.first } -.counter-start-header-section.dossier-show{ class: class_names('gallery': feature_enabled?(:gallery_demande), 'gallery-demande': feature_enabled?(:gallery_demande), "dossier-show-instructeur" => profile =="instructeur"), "data-controller": "lightbox" } +.counter-start-header-section.dossier-show.gallery.gallery-demande{ class: class_names("dossier-show-instructeur" => profile =="instructeur"), "data-controller": "lightbox" } - if profile == 'instructeur' && dossier.termine_and_accuse_lecture? = render Dsfr::CalloutComponent.new(title: nil) do |c| diff --git a/config/initializers/flipper.rb b/config/initializers/flipper.rb index 8595349bf..129702860 100644 --- a/config/initializers/flipper.rb +++ b/config/initializers/flipper.rb @@ -29,7 +29,6 @@ features = [ :export_order_by_revision, :export_template, :expression_reguliere_type_de_champ, - :gallery_demande, :groupe_instructeur_api_hack, :sva, :switch_domain