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-12 16:03:54 +00:00 committed by GitHub
commit 3b9bb15c13
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)
tag.span status_text, role: 'status', class: class_names(
'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,
alignment_class => true
)