From 68378d106cf32f99fbe03afff988e8171beaa4d6 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Tue, 30 May 2023 10:21:48 +0100 Subject: [PATCH] refactor: slight cleanup --- app/controllers/logs_controller.rb | 1 - app/controllers/organisations_controller.rb | 1 - app/views/logs/_log_filters.erb | 2 -- 3 files changed, 4 deletions(-) diff --git a/app/controllers/logs_controller.rb b/app/controllers/logs_controller.rb index 099584873..de4a35bdb 100644 --- a/app/controllers/logs_controller.rb +++ b/app/controllers/logs_controller.rb @@ -1,6 +1,5 @@ class LogsController < ApplicationController include Pagy::Backend - include Modules::LogsFilter include Modules::SearchFilter skip_before_action :verify_authenticity_token, if: :json_api_request? diff --git a/app/controllers/organisations_controller.rb b/app/controllers/organisations_controller.rb index db31fb12a..fc691444f 100644 --- a/app/controllers/organisations_controller.rb +++ b/app/controllers/organisations_controller.rb @@ -1,6 +1,5 @@ class OrganisationsController < ApplicationController include Pagy::Backend - include Modules::LogsFilter include Modules::SearchFilter before_action :authenticate_user! diff --git a/app/views/logs/_log_filters.erb b/app/views/logs/_log_filters.erb index 5553e062d..78d59b33b 100644 --- a/app/views/logs/_log_filters.erb +++ b/app/views/logs/_log_filters.erb @@ -39,7 +39,6 @@ <%= render partial: "filters/radio_filter", locals: { f: f, - filter_type: @filter_type, options: all_or_yours, label: "Logs", category: "user", @@ -48,7 +47,6 @@ <% if (@current_user.support? || @current_user.organisation.has_managing_agents?) && request.path == "/lettings-logs" %> <%= render partial: "filters/radio_filter", locals: { f: f, - filter_type: @filter_type, options: { "all": { label: "All" }, "specific_org": {