]> cat aescling's git repositories - mastodon.git/commitdiff
Change dasbhoard links for “new users” and “active users” (#17570)
authorClaire <claire.github-309c@sitedethib.com>
Wed, 16 Feb 2022 12:17:28 +0000 (13:17 +0100)
committerGitHub <noreply@github.com>
Wed, 16 Feb 2022 12:17:28 +0000 (13:17 +0100)
Make them filter for local accounts by default

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

index 59b75e0e1da2f364054f46c0dd9d9c267e539614..8354f0b9f5a18e9d7649999cf1d7532b4d4fd0d3 100644 (file)
 
 .dashboard
   .dashboard__item
-    = react_admin_component :counter, measure: 'new_users', start_at: @time_period.first, end_at: @time_period.last, label: t('admin.dashboard.new_users'), href: admin_accounts_path
+    = react_admin_component :counter, measure: 'new_users', start_at: @time_period.first, end_at: @time_period.last, label: t('admin.dashboard.new_users'), href: admin_accounts_path(origin: 'local')
 
   .dashboard__item
-    = react_admin_component :counter, measure: 'active_users', start_at: @time_period.first, end_at: @time_period.last, label: t('admin.dashboard.active_users'), href: admin_accounts_path
+    = react_admin_component :counter, measure: 'active_users', start_at: @time_period.first, end_at: @time_period.last, label: t('admin.dashboard.active_users'), href: admin_accounts_path(origin: 'local')
 
   .dashboard__item
     = react_admin_component :counter, measure: 'interactions', start_at: @time_period.first, end_at: @time_period.last, label: t('admin.dashboard.interactions')