Explicitly pass the “state” param in notifications_*_procedure methods
This commit is contained in:
parent
8a06c01f13
commit
769621de46
4 changed files with 13 additions and 13 deletions
|
@ -27,7 +27,7 @@
|
|||
%li
|
||||
%object
|
||||
= link_to(instructeur_procedure_path(p, statut: 'suivis')) do
|
||||
- if current_instructeur.notifications_per_procedure[p.id].present?
|
||||
- if current_instructeur.notifications_per_procedure(:en_cours)[p.id].present?
|
||||
%span.notifications{ 'aria-label': "notifications" }
|
||||
- followed_count = @followed_dossiers_count_per_procedure[p.id] || 0
|
||||
.stats-number
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
instructeur_procedure_path(@procedure, statut: 'suivis'),
|
||||
active: @statut == 'suivis',
|
||||
badge: @followed_dossiers.count,
|
||||
notification: current_instructeur.notifications_for_procedure(@procedure).present?)
|
||||
notification: current_instructeur.notifications_for_procedure(@procedure, :en_cours).present?)
|
||||
|
||||
= tab_item(t('pluralize.processed', count: @termines_dossiers.count),
|
||||
instructeur_procedure_path(@procedure, statut: 'traites'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue