0
0
Fork 0

Add invite filter (#5862)

This commit is contained in:
Yamagishi Kazutoshi 2017-12-02 00:40:02 +09:00 committed by Eugen Rochko
parent eee3b32b77
commit 74320971e2
6 changed files with 59 additions and 2 deletions

View file

@ -3,8 +3,9 @@
module Admin::FilterHelper
ACCOUNT_FILTERS = %i(local remote by_domain silenced suspended recent username display_name email ip).freeze
REPORT_FILTERS = %i(resolved account_id target_account_id).freeze
INVITE_FILTER = %i(available expired).freeze
FILTERS = ACCOUNT_FILTERS + REPORT_FILTERS
FILTERS = ACCOUNT_FILTERS + REPORT_FILTERS + INVITE_FILTER
def filter_link_to(text, link_to_params, link_class_params = link_to_params)
new_url = filtered_url_for(link_to_params)