Browse Source

Remove bulk_upload_lettings_logs flag

pull/1684/head
Jack S 3 years ago
parent
commit
e701c7b168
  1. 4
      app/services/feature_toggle.rb
  2. 2
      app/views/logs/index.html.erb

4
app/services/feature_toggle.rb

@ -20,10 +20,6 @@ class FeatureToggle
true true
end end
def self.bulk_upload_lettings_logs?
true
end
def self.bulk_upload_sales_logs? def self.bulk_upload_sales_logs?
!Rails.env.production? !Rails.env.production?
end end

2
app/views/logs/index.html.erb

@ -55,7 +55,7 @@
<%= govuk_button_to "Create a new sales log", sales_logs_path, class: "govuk-!-margin-right-6" %> <%= govuk_button_to "Create a new sales log", sales_logs_path, class: "govuk-!-margin-right-6" %>
<% end %> <% end %>
<% if FeatureToggle.bulk_upload_lettings_logs? && log_type_for_controller(controller) == "lettings" %> <% if log_type_for_controller(controller) == "lettings" %>
<%= govuk_button_link_to "Upload lettings logs in bulk", bulk_upload_path_for_controller(controller, id: "start"), secondary: true %> <%= govuk_button_link_to "Upload lettings logs in bulk", bulk_upload_path_for_controller(controller, id: "start"), secondary: true %>
<% end %> <% end %>

Loading…
Cancel
Save