demarches-normaliennes/app/views/administrateurs/ineligibilite_rules/_update.turbo_stream.haml

7 lines
261 B
Text

- rendered = render @ineligibilite_rules_component
- if rendered.present?
= turbo_stream.replace dom_id(@procedure.draft_revision, :ineligibilite_rules) do
- rendered
- else
= turbo_stream.remove dom_id(@procedure.draft_revision, :ineligibilite_rules)