fix(gallery): display pieces_jointes tab if any attachments
This commit is contained in:
parent
4f42e00f4e
commit
c6ab05dcc5
2 changed files with 19 additions and 14 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue