Fix: Ensure "With Media" is highlighted from Admin Accounts page (#30812)

pull/2758/head
Emelia Smith 2024-06-25 09:46:53 +02:00 committed by GitHub
parent 052c90b8de
commit 30ae5952d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
%strong= t('admin.statuses.media.title') %strong= t('admin.statuses.media.title')
%ul %ul
%li= filter_link_to t('generic.all'), media: nil, id: nil %li= filter_link_to t('generic.all'), media: nil, id: nil
%li= filter_link_to t('admin.statuses.with_media'), media: '1' %li= filter_link_to t('admin.statuses.with_media'), media: true
.back-link .back-link
- if params[:report_id] - if params[:report_id]
= link_to admin_report_path(params[:report_id].to_i) do = link_to admin_report_path(params[:report_id].to_i) do

View File

@ -33,7 +33,7 @@ describe Admin::StatusesController do
context 'when filtering by media' do context 'when filtering by media' do
before do before do
get :index, params: { account_id: account.id, media: '1' } get :index, params: { account_id: account.id, media: true }
end end
it 'returns http success' do it 'returns http success' do