From 862c8543776e141646a19cffdd7fba677a4a6851 Mon Sep 17 00:00:00 2001 From: Jose Farias Date: Thu, 17 Oct 2024 20:55:11 -0600 Subject: [PATCH] querying_unassigned_status -> unassigned_filter_activated --- app/controllers/bubbles_controller.rb | 2 +- app/helpers/filters_helper.rb | 2 +- app/views/bubbles/_filters.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/bubbles_controller.rb b/app/controllers/bubbles_controller.rb index 034e5e8cf..b01d3bea6 100644 --- a/app/controllers/bubbles_controller.rb +++ b/app/controllers/bubbles_controller.rb @@ -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 diff --git a/app/helpers/filters_helper.rb b/app/helpers/filters_helper.rb index dbe287647..4498779a1 100644 --- a/app/helpers/filters_helper.rb +++ b/app/helpers/filters_helper.rb @@ -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 diff --git a/app/views/bubbles/_filters.html.erb b/app/views/bubbles/_filters.html.erb index c81a02877..cce0cfc41 100644 --- a/app/views/bubbles/_filters.html.erb +++ b/app/views/bubbles/_filters.html.erb @@ -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 %>