style(dossier-badge): en_instruction & accepte should have badge

This commit is contained in:
Colin Darie 2023-06-12 17:46:01 +02:00
parent 0d1754d715
commit 68f1d10e19

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
)