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

8 lines
261 B
Text
Raw Normal View History

- 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)