demarches-normaliennes/app/views/administrateurs/conditions/_update.turbo_stream.haml
2022-07-13 15:38:43 +02:00

8 lines
219 B
Text

- rendered = render @condition_component
- if rendered.present?
= turbo_stream.morph dom_id(@tdc.stable_self, :conditions) do
- rendered
end
- else
= turbo_stream.remove dom_id(@tdc.stable_self, :conditions)