demarches-normaliennes/app/views/champs/carte/index.turbo_stream.haml

10 lines
409 B
Text
Raw Normal View History

2023-06-09 16:29:42 +02:00
= turbo_stream.update dom_id(@champ, :geo_areas) do
= render Dossiers::GeoAreasComponent.new(champ: @champ, editing: true)
2022-05-03 19:43:25 +02:00
- 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?)