From: ThibG Date: Mon, 18 Feb 2019 12:37:13 +0000 (+0100) Subject: Hide domain filter in admin page when “local” filter is active (#10074) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=2f7f6af26a40fb9981c99d131cf021c71f24fb99;p=mastodon.git Hide domain filter in admin page when “local” filter is active (#10074) Since the “domain” field is ignored in this case. --- diff --git a/app/views/admin/accounts/index.html.haml b/app/views/admin/accounts/index.html.haml index 91fddadf8..345f74f90 100644 --- a/app/views/admin/accounts/index.html.haml +++ b/app/views/admin/accounts/index.html.haml @@ -26,8 +26,9 @@ = hidden_field_tag key, params[key] - %i(username by_domain display_name email ip).each do |key| - .input.string.optional - = text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.accounts.#{key}") + - unless key == :by_domain && params[:remote].blank? + .input.string.optional + = text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.accounts.#{key}") .actions %button= t('admin.accounts.search')