From d11a0bac75cf59db6244e6562cd31609cf976272 Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Thu, 23 Oct 2025 15:38:13 -0700 Subject: [PATCH] Remove collection move dialog when there's only one board --- .../cards/display/perma/_collection.html.erb | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/app/views/cards/display/perma/_collection.html.erb b/app/views/cards/display/perma/_collection.html.erb index 9ec3e15cc..cc9a27517 100644 --- a/app/views/cards/display/perma/_collection.html.erb +++ b/app/views/cards/display/perma/_collection.html.erb @@ -1,37 +1,37 @@ <%= render "cards/display/common/collection", card: card do %>
> - + <% if Current.user.collections.count > 1 %> + - - <%= tag.div class: "max-width full-width", data: { - action: "turbo:before-cache@document->dialog#close dialog:show@document->navigable-list#reset keydown->navigable-list#navigate filter:changed->navigable-list#reset", - controller: "filter navigable-list", - dialog_target: "dialog", - navigable_list_focus_on_selection_value: false, - navigable_list_actionable_items_value: true } do %> - Move this card to… + + <%= tag.div class: "max-width full-width", data: { + action: "turbo:before-cache@document->dialog#close dialog:show@document->navigable-list#reset keydown->navigable-list#navigate filter:changed->navigable-list#reset", + controller: "filter navigable-list", + dialog_target: "dialog", + navigable_list_focus_on_selection_value: false, + navigable_list_actionable_items_value: true } do %> + Move this card to… - <% if Current.user.collections.count > 1 %> <%= text_field_tag :search, nil, placeholder: "Filter…", class: "input input--transparent txt-small margin-block-half font-weight-normal", autofocus: true, type: "search", autocorrect: "off", autocomplete: "off", data: { "1p-ignore": "true", filter_target: "input", action: "input->filter#filter" } %> - <% end %> - - <% end %> - + + <% end %> + + <% end %>
<% end %>