Merge pull request #9186 from colinux/fix-dossier-badge-state-icon

Design: corrige badge en_instruction & accepte pour avoir les badges, contrairement aux autres états
This commit is contained in:
Colin Darie 2023-06-13 06:12:08 +00:00 committed by GitHub
commit a9887c0505
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ module DossierHelper
status_text = dossier_display_state(state, lower: true) status_text = dossier_display_state(state, lower: true)
tag.span status_text, role: 'status', class: class_names( tag.span status_text, role: 'status', class: class_names(
'fr-badge fr-badge--sm' => true, 'fr-badge fr-badge--sm' => true,
'fr-badge--no-icon' => [Dossier.states.fetch(:en_instruction), Dossier.states.fetch(:accepte)].include?(state), 'fr-badge--no-icon' => [Dossier.states.fetch(:en_instruction), Dossier.states.fetch(:accepte)].exclude?(state),
class_badge_state(state) => true, class_badge_state(state) => true,
alignment_class => true alignment_class => true
) )