demarches-normaliennes/app/views/champs/carte/index.turbo_stream.haml
2023-06-12 10:33:56 +02:00

9 lines
409 B
Text

= turbo_stream.update dom_id(@champ, :geo_areas) do
= render Dossiers::GeoAreasComponent.new(champ: @champ, editing: true)
- if @focus
= turbo_stream.dispatch 'map:feature:focus', bbox: @champ.bounding_box
- if @champ.dossier.editing_fork?
= turbo_stream.replace_all '.dossier-edit-sticky-footer' do
= render Dossiers::EditFooterComponent.new(dossier: @champ.dossier, annotation: @champ.private?)