summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts/get-user-menu.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-08-13 21:02:25 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-08-13 21:02:25 +0900
commitbbef2a953ebf2f7f063641e6764ec8571cd78b75 (patch)
treeb2fc17e8c413c3a92a5d5e619eea5a0ee79336ec /packages/frontend/src/scripts/get-user-menu.ts
parentfix(frontend): fix style of _error_.vue (diff)
downloadsharkey-bbef2a953ebf2f7f063641e6764ec8571cd78b75.tar.gz
sharkey-bbef2a953ebf2f7f063641e6764ec8571cd78b75.tar.bz2
sharkey-bbef2a953ebf2f7f063641e6764ec8571cd78b75.zip
enhance(frontend): tweak user moderation page
Diffstat (limited to 'packages/frontend/src/scripts/get-user-menu.ts')
-rw-r--r--packages/frontend/src/scripts/get-user-menu.ts10
1 files changed, 5 insertions, 5 deletions
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: () => {