From 5930c8fc08fd7e2170257421e668ea013112bb8f Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 24 Jul 2023 16:55:57 -0700 Subject: [PATCH] fix: :bug: make admin users page properly direct user cards to about page --- packages/client/src/components/MkUserCardMini.vue | 10 +++++++++- packages/client/src/pages/admin/users.vue | 12 +++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/packages/client/src/components/MkUserCardMini.vue b/packages/client/src/components/MkUserCardMini.vue index 7c9dfd4b09..30bbaa1ac2 100644 --- a/packages/client/src/components/MkUserCardMini.vue +++ b/packages/client/src/components/MkUserCardMini.vue @@ -5,7 +5,7 @@ $style.root, { yellow: user.isSilenced, red: user.isSuspended, gray: false }, ]" - :to="userPage(user)" + :to="props.showAboutPage ? `/user-info/${user.id}` : userPage(user)" > (), { withChart: true, + showAboutPage: false, }, ); @@ -99,6 +101,12 @@ if (props.withChart) { overflow: hidden; text-overflow: ellipsis; } + + // > :global(.moderation) { + // display: flex; + // gap: 1rem; + // margin-right: 1rem; + // } } > :global(.chart) { diff --git a/packages/client/src/pages/admin/users.vue b/packages/client/src/pages/admin/users.vue index 5ed0fb3656..9ddfc76833 100644 --- a/packages/client/src/pages/admin/users.vue +++ b/packages/client/src/pages/admin/users.vue @@ -100,19 +100,17 @@ :pagination="pagination" class="users" > - - - + :user="user" + :show-about-page="true" />