mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 11:01:27 +01: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
3e59a0e838
commit
d23a7f9726
1 changed files with 3 additions and 2 deletions
|
@ -26,6 +26,7 @@
|
||||||
= 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|
|
||||||
|
- unless key == :by_domain && params[:remote].blank?
|
||||||
.input.string.optional
|
.input.string.optional
|
||||||
= text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.accounts.#{key}")
|
= text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.accounts.#{key}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue