diff --git a/app/components/create_log_actions_component.rb b/app/components/create_log_actions_component.rb index af8ed9d89..55795c94a 100644 --- a/app/components/create_log_actions_component.rb +++ b/app/components/create_log_actions_component.rb @@ -38,17 +38,19 @@ class CreateLogActionsComponent < ViewComponent::Base end def upload_button_copy - if log_type == "lettings" + case log_type + when "lettings" "Upload lettings logs in bulk" - elsif FeatureToggle.bulk_upload_sales_logs? && log_type == "sales" + when "sales" "Upload sales logs in bulk" end end def upload_button_href - if log_type == "lettings" + case log_type + when "lettings" bulk_upload_lettings_log_path(id: "start") - elsif FeatureToggle.bulk_upload_sales_logs? && log_type == "sales" + when "sales" bulk_upload_sales_log_path(id: "start") end end diff --git a/app/services/feature_toggle.rb b/app/services/feature_toggle.rb index edaa02fd7..88e1d17ef 100644 --- a/app/services/feature_toggle.rb +++ b/app/services/feature_toggle.rb @@ -20,10 +20,6 @@ class FeatureToggle true end - def self.bulk_upload_sales_logs? - !Rails.env.production? - end - def self.bulk_upload_duplicate_log_check_enabled? !Rails.env.staging? end