refactor(dossier): has_annotations?

This commit is contained in:
Paul Chavard 2024-02-08 19:20:38 +01:00
parent 9b26dedab4
commit 1193c866bf
4 changed files with 7 additions and 3 deletions

View file

@ -7,7 +7,7 @@
= tab_item('le dossier',
apercu_admin_procedure_path(@dossier.procedure, tab: 'dossier'),
active: @tab == 'dossier')
- if @dossier.champs_private.size > 0
- if @dossier.has_annotations?
= tab_item('les annotations privées',
apercu_admin_procedure_path(@dossier.procedure, tab: 'annotations-privees'),
active: @tab == 'annotations-privees')