fix(gallery): display pieces_jointes tab if any attachments

This commit is contained in:
Eric Leroy-Terquem 2024-09-13 19:07:32 +02:00
parent 4f42e00f4e
commit c6ab05dcc5
No known key found for this signature in database
GPG key ID: 53D8FAECEF207605
2 changed files with 19 additions and 14 deletions

View file

@ -7,7 +7,7 @@
instructeur_dossier_path(dossier.procedure, dossier),
notification: notifications_summary[:demande])
- if dossier.champs.map(&:piece_justificative_file).flatten.any?
- if @gallery_attachments.present?
= dynamic_tab_item(t('views.instructeurs.dossiers.tab_steps.attachments'),
pieces_jointes_instructeur_dossier_path(dossier.procedure, dossier),
notification: notifications_summary[:pieces_jointes])