querying_unassigned_status -> unassigned_filter_activated

This commit is contained in:
Jose Farias
2024-10-17 20:55:11 -06:00
parent 0c27ede5ea
commit 862c854377
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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>