Hide domain filter in admin page when “local” filter is active (#10074)
Since the “domain” field is ignored in this case.lolsob-rspec
parent
eaba640112
commit
d94db4536f
|
@ -26,6 +26,7 @@
|
|||
= hidden_field_tag key, params[key]
|
||||
|
||||
- %i(username by_domain display_name email ip).each do |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}")
|
||||
|
||||
|
|
Loading…
Reference in New Issue