Browse Source

Hide domain filter in admin page when “local” filter is active (#10074)

Since the “domain” field is ignored in this case.
pull/4/head
ThibG 5 years ago
committed by Eugen Rochko
parent
commit
2f7f6af26a
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      app/views/admin/accounts/index.html.haml

+ 3
- 2
app/views/admin/accounts/index.html.haml View File

@ -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')

Loading…
Cancel
Save