From bbef2a953ebf2f7f063641e6764ec8571cd78b75 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 13 Aug 2023 21:02:25 +0900 Subject: enhance(frontend): tweak user moderation page --- packages/frontend/src/scripts/get-user-menu.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/frontend/src/scripts/get-user-menu.ts') diff --git a/packages/frontend/src/scripts/get-user-menu.ts b/packages/frontend/src/scripts/get-user-menu.ts index 69a6f75c12..b9c726e134 100644 --- a/packages/frontend/src/scripts/get-user-menu.ts +++ b/packages/frontend/src/scripts/get-user-menu.ts @@ -133,13 +133,13 @@ export function getUserMenu(user: misskey.entities.UserDetailed, router: Router action: () => { copyToClipboard(`@${user.username}@${user.host ?? host}`); }, - }, { - icon: 'ti ti-info-circle', - text: i18n.ts.info, + }, ...(iAmModerator ? [{ + icon: 'ti ti-user-exclamation', + text: i18n.ts.moderation, action: () => { - router.push(`/user-info/${user.id}`); + router.push(`/admin/user/${user.id}`); }, - }, { + }] : []), { icon: 'ti ti-rss', text: i18n.ts.copyRSS, action: () => { -- cgit v1.2.3-freya