Fix tag_filters and assignee_filters calls
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user