Update packages/frontend/src/scripts/get-user-menu.ts

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
まっちゃてぃー 2023-10-29 15:12:49 +09:00 committed by GitHub
parent 7faf5c7dd2
commit 12b0430b4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -333,6 +333,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router
action: reportAbuse,
}]);
}
if (user.host !== null) {
menu = menu.concat([null, {
icon: 'ti ti-refresh',
@ -340,6 +341,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router
action: userInfoUpdate,
}]);
}
if (defaultStore.state.devMode) {
menu = menu.concat([null, {
icon: 'ti ti-id',