about summary refs log tree commit diff
path: root/app/views/admin
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-02-18 13:37:13 +0100
committerEugen Rochko <eugen@zeonfederated.com>2019-02-18 13:37:13 +0100
commit2f7f6af26a40fb9981c99d131cf021c71f24fb99 (patch)
tree6394321d2e99ce7fa506c0a9d0f08962bfb00ad4 /app/views/admin
parentd1d7d14f77733be2e0938488752e94d65eedc6aa (diff)
Hide domain filter in admin page when “local” filter is active (#10074)
Since the “domain” field is ignored in this case.
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/accounts/index.html.haml5
1 files changed, 3 insertions, 2 deletions
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')