Added new flags to admin dashboard account search

• Added:
- new flags to admin dashboard account search for PRO, investor, donor, verified
- moved spam to the flags column instead of next to username

• Removed:
- IP Address in account list

• Updated:
- Title for flags in account moderation header
This commit is contained in:
Developer
2021-02-10 12:24:09 -05:00
parent 65d8c7ee86
commit 30c05a6e96
5 changed files with 33 additions and 12 deletions

View File

@@ -60,6 +60,14 @@ class AccountFilter
Account.where("created_at >= ?", value)
when "spam"
Account.where(is_flagged_as_spam: true)
when "is_pro"
Account.where(is_pro: true)
when "is_investor"
Account.where(is_investor: true)
when "is_donor"
Account.where(is_donor: true)
when "is_verified"
Account.where(is_verified: true)
else
raise "Unknown filter: #{key}"
end