mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-17 21:04:14 +00:00
Hide domain filter in admin page when “local” filter is active (#10074)
Since the “domain” field is ignored in this case.
This commit is contained in:
parent
d1d7d14f77
commit
2f7f6af26a
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue