]> cat aescling's git repositories - mastodon.git/commitdiff
Fix hashtag batch actions being unavailable on pending review page (#11897)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 20 Sep 2019 19:22:16 +0000 (21:22 +0200)
committerGitHub <noreply@github.com>
Fri, 20 Sep 2019 19:22:16 +0000 (21:22 +0200)
Regression from #11829

app/views/admin/tags/index.html.haml

index c767c9d188adad212eb3d6a0a4d67b5ed03ff7d4..498b930835833352e406a1fa244771d739718295 100644 (file)
@@ -51,7 +51,7 @@
       %label.batch-table__toolbar__select.batch-checkbox-all
         = check_box_tag :batch_checkbox_all, nil, false
       .batch-table__toolbar__actions
-        - if params[:review] == 'pending_review'
+        - if params[:pending_review] == '1'
           = f.button safe_join([fa_icon('check'), t('admin.accounts.approve')]), name: :approve, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
 
           = f.button safe_join([fa_icon('times'), t('admin.accounts.reject')]), name: :reject, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }