From 59e68ab2c72c81a1f23ca67b8b475d683aee2210 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Wed, 26 Oct 2022 11:59:00 +0200 Subject: [PATCH] refactor(haml): swap - and = due to haml 6 --- .../types_de_champ/_insert.turbo_stream.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/administrateurs/types_de_champ/_insert.turbo_stream.haml b/app/views/administrateurs/types_de_champ/_insert.turbo_stream.haml index 012426dde..3c71d36b4 100644 --- a/app/views/administrateurs/types_de_champ/_insert.turbo_stream.haml +++ b/app/views/administrateurs/types_de_champ/_insert.turbo_stream.haml @@ -12,17 +12,17 @@ - if @created.present? - if @created.coordinate.previous_sibling.present? = turbo_stream.after dom_id(@created.coordinate.previous_sibling, :type_de_champ_editor) do - = render @created + - render @created - else = turbo_stream.prepend dom_id(@created.coordinate.block, :types_de_champ_editor_block) do - = render @created + - render @created - @morphed&.each do |champ_component| = turbo_stream.morph dom_id(champ_component.coordinate, :type_de_champ_editor) do - = render champ_component + - render champ_component - if @coordinate.present? = 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'