refactor(haml): swap - and = due to haml 6

This commit is contained in:
simon lehericey 2022-10-26 11:59:00 +02:00
parent 4e082d6424
commit 59e68ab2c7

View file

@ -12,17 +12,17 @@
- if @created.present? - if @created.present?
- if @created.coordinate.previous_sibling.present? - if @created.coordinate.previous_sibling.present?
= turbo_stream.after dom_id(@created.coordinate.previous_sibling, :type_de_champ_editor) do = turbo_stream.after dom_id(@created.coordinate.previous_sibling, :type_de_champ_editor) do
= render @created - render @created
- else - else
= turbo_stream.prepend dom_id(@created.coordinate.block, :types_de_champ_editor_block) do = turbo_stream.prepend dom_id(@created.coordinate.block, :types_de_champ_editor_block) do
= render @created - render @created
- @morphed&.each do |champ_component| - @morphed&.each do |champ_component|
= turbo_stream.morph dom_id(champ_component.coordinate, :type_de_champ_editor) do = turbo_stream.morph dom_id(champ_component.coordinate, :type_de_champ_editor) do
= render champ_component - render champ_component
- if @coordinate.present? - if @coordinate.present?
= turbo_stream.morph dom_id(@coordinate.revision, :estimated_fill_duration) do = turbo_stream.morph dom_id(@coordinate.revision, :estimated_fill_duration) do
= render TypesDeChampEditor::EstimatedFillDurationComponent.new(revision: @coordinate.revision, is_annotation: @coordinate.private?) - render TypesDeChampEditor::EstimatedFillDurationComponent.new(revision: @coordinate.revision, is_annotation: @coordinate.private?)
= turbo_stream.dispatch 'sortable:sort' = turbo_stream.dispatch 'sortable:sort'