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

Since the “domain” field is ignored in this case.
lolsob-rspec
ThibG 2019-02-18 13:37:13 +01:00 committed by Eugen Rochko
parent eaba640112
commit d94db4536f
1 changed files with 3 additions and 2 deletions

View File

@ -26,8 +26,9 @@
= hidden_field_tag key, params[key] = hidden_field_tag key, params[key]
- %i(username by_domain display_name email ip).each do |key| - %i(username by_domain display_name email ip).each do |key|
.input.string.optional - unless key == :by_domain && params[:remote].blank?
= text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.accounts.#{key}") .input.string.optional
= text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.accounts.#{key}")
.actions .actions
%button= t('admin.accounts.search') %button= t('admin.accounts.search')