Fix tag_filters and assignee_filters calls

This commit is contained in:
Jose Farias
2024-10-17 23:02:59 -06:00
parent 1d9d120db6
commit bd2f4fc476
4 changed files with 6 additions and 10 deletions
+1 -5
View File
@@ -1,9 +1,5 @@
module Bucket::Filterable
extend ActiveSupport::Concern
included do
attr_accessor :tag_filters, :assignee_filters
end
attr_accessor :tag_filters, :assignee_filters
def filtered_bubbles(params = {})
result = bubbles
+3 -3
View File
@@ -5,11 +5,11 @@
</h1>
<h2 class="txt-medium flex align-center justify-center gap-half">
<%= tag_filters ? "Tagged" : "with" %>
<%= render "bubbles/filters/tags", bucket: bucket, tag_filters: tag_filters %>
<%= bucket.tag_filters ? "Tagged" : "with" %>
<%= render "bubbles/filters/tags", bucket: bucket %>
<% unless unassigned_filter_activated? %>
and <%= render "bubbles/filters/assignees", bucket: bucket, assignee_filters: assignee_filters %>
and <%= render "bubbles/filters/assignees", bucket: bucket %>
<% end %>
</h2>
@@ -11,7 +11,7 @@
</menu>
</dialog>
<% if assignee_filters %>
<% if bucket.assignee_filters %>
<%= link_to bucket_bubbles_path(bucket, view_filter_params.without(:assignee_ids)), class: "btn", style: "font-size: 0.4em;" do %>
<%= image_tag "remove.svg", aria: { hidden: true }, size: 24 %>
<span class="for-screen-reader">Clear</span>
+1 -1
View File
@@ -11,7 +11,7 @@
</menu>
</dialog>
<% if tag_filters %>
<% if bucket.tag_filters %>
<%= link_to bucket_bubbles_path(bucket, view_filter_params.without(:tag_ids)), class: "btn", style: "font-size: 0.4em;" do %>
<%= image_tag "remove.svg", aria: { hidden: true }, size: 24 %>
<span class="for-screen-reader">Clear</span>