querying_unassigned_status -> unassigned_filter_activated
This commit is contained in:
@@ -44,7 +44,7 @@ class BubblesController < ApplicationController
|
||||
end
|
||||
|
||||
def clear_assignees_if_unassigned
|
||||
params[:assignee_ids] = nil if helpers.querying_unassigned_status?
|
||||
params[:assignee_ids] = nil if helpers.unassigned_filter_activated?
|
||||
end
|
||||
|
||||
def set_view
|
||||
|
||||
@@ -28,7 +28,7 @@ module FiltersHelper
|
||||
bubble_filter_params.merge params.permit :term, :view_id
|
||||
end
|
||||
|
||||
def querying_unassigned_status?
|
||||
def unassigned_filter_activated?
|
||||
params[:status] == "unassigned"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<%= tag_filters ? "Tagged" : "with" %>
|
||||
<%= render "bubbles/filters/tags", bucket: bucket, tag_filters: tag_filters %>
|
||||
|
||||
<% unless querying_unassigned_status? %>
|
||||
<% unless unassigned_filter_activated? %>
|
||||
and <%= render "bubbles/filters/assignees", bucket: bucket, assignee_filters: assignee_filters %>
|
||||
<% end %>
|
||||
</h2>
|
||||
|
||||
Reference in New Issue
Block a user