]> cat aescling's git repositories - mastodon.git/commitdiff
Fix "select all matching items" being offered when all items are on the page (#19054)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 26 Aug 2022 00:11:23 +0000 (02:11 +0200)
committeraescling <aescling+gitlab@cat.family>
Mon, 5 Sep 2022 04:28:02 +0000 (00:28 -0400)
app/views/admin/accounts/index.html.haml

index 4e226d5ce939a7bc448510ee78cd3bc659777049..9571f27b444d9a5a37024969c82cf44a6b6bd243 100644 (file)
@@ -50,7 +50,7 @@
           = 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') }
 
         = f.button safe_join([fa_icon('lock'), t('admin.accounts.perform_full_suspension')]), name: :suspend, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
-    - if true || @accounts.total_count > @accounts.size
+    - if @accounts.total_count > @accounts.size
       .batch-table__select-all
         .not-selected.active
           %span= t('generic.all_items_on_page_selected_html', count: @accounts.size)