views: convert mod dashboard + admin user edit page to simple form.

Fixes bug with the user level select dropdown on the mod dashboard page
missing the builder level.
This commit is contained in:
evazion
2019-08-18 11:20:14 -05:00
parent d7d4a63e69
commit 576b4feb3b
6 changed files with 15 additions and 74 deletions

View File

@@ -4,7 +4,7 @@ module Moderator
helper :post_flags, :post_appeals
def show
@dashboard = Moderator::Dashboard::Report.new(params[:min_date] || 2.days.ago.to_date, params[:max_level] || 20)
@dashboard = Moderator::Dashboard::Report.new(**search_params.to_h.symbolize_keys)
end
end
end