From 03dd6218f840a35a075636384de1411ef4fb08bb Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Thu, 19 Oct 2023 15:43:35 +0200 Subject: [PATCH] fix(editor): always render add champ button --- .../editor_component/editor_component.html.haml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/components/types_de_champ_editor/editor_component/editor_component.html.haml b/app/components/types_de_champ_editor/editor_component/editor_component.html.haml index c35d11113..dd9a15336 100644 --- a/app/components/types_de_champ_editor/editor_component/editor_component.html.haml +++ b/app/components/types_de_champ_editor/editor_component/editor_component.html.haml @@ -2,6 +2,5 @@ .types-de-champ-editor.editor-root = render TypesDeChampEditor::ErrorsSummary.new(revision: @revision) = render TypesDeChampEditor::BlockComponent.new(block: @revision, coordinates: coordinates) - - if coordinates.empty? - #empty-coordinates - = render TypesDeChampEditor::AddChampButtonComponent.new(revision: @revision, is_annotation: annotations?) + #empty-coordinates{ hidden: coordinates.present? } + = render TypesDeChampEditor::AddChampButtonComponent.new(revision: @revision, is_annotation: annotations?)