From de261bc3218f380b25a04ae543bb9d76bd16eae7 Mon Sep 17 00:00:00 2001 From: evazion Date: Fri, 24 Jun 2022 08:35:39 -0500 Subject: [PATCH] ai tags: enable filtering by unposted media assets. Enabled filtering by posted media assets on the /ai_tags page. This was disabled in development because it was too slow, but seems to be fine in production. --- app/views/ai_tags/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/ai_tags/index.html.erb b/app/views/ai_tags/index.html.erb index 1ed77a8a4..b671322c6 100644 --- a/app/views/ai_tags/index.html.erb +++ b/app/views/ai_tags/index.html.erb @@ -15,7 +15,7 @@
<%= link_to "All", current_page_path(search: search_params.to_h.without("is_posted")), class: ["inline-block p-1 pb-2", (search_params[:is_posted].nil? ? "border-current border-b-2 -mb-px" : "inactive-link")] %> <%= link_to "Posted", current_page_path(search: { is_posted: true, **search_params }), class: ["inline-block p-1 pb-2", (search_params[:is_posted].to_s.truthy? ? "border-current border-b-2 -mb-px" : "inactive-link")] %> - <%# link_to "Unposted", current_page_path(search: { is_posted: false, **search_params }), class: ["inline-block p-1 pb-2", (search_params[:is_posted].to_s.falsy? ? "border-current border-b-2 -mb-px" : "inactive-link")] %> + <%= link_to "Unposted", current_page_path(search: { is_posted: false, **search_params }), class: ["inline-block p-1 pb-2", (search_params[:is_posted].to_s.falsy? ? "border-current border-b-2 -mb-px" : "inactive-link")] %> <%= render PreviewSizeMenuComponent.new(current_size: @preview_size) %>