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

9 lines
219 B
Text
Raw Normal View History

2022-07-11 21:57:43 +02:00
- rendered = render @condition_component
- if rendered.present?
= turbo_stream.morph dom_id(@tdc.stable_self, :conditions) do
2022-07-11 21:57:43 +02:00
- rendered
end
- else
= turbo_stream.remove dom_id(@tdc.stable_self, :conditions)