Skip to content

Commit

Permalink
ユーザー概要の...からサーバー情報にリンクを追加する (kokonect-link#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
kozakura913 authored Sep 4, 2024
1 parent 851ec1f commit 816925b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG_YOJO.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

### Client
- Fix: 非ログインでリバーシの戦績が見れない不具合の修正 [#404](https://github.com/yojo-art/cherrypick/pull/404)
- Enhance: ユーザー概要の...からサーバー情報にリンクを追加 [#406](https://github.com/yojo-art/cherrypick/pull/406)

### Server
-
Expand Down
7 changes: 7 additions & 0 deletions packages/frontend/src/scripts/get-user-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter
if (user.url == null) return;
window.open(user.url, '_blank', 'noopener');
},
}] : []), ...(user.host != null ? [{
icon: 'ti ti-server',
text: i18n.ts.instanceInfo,
action: () => {
if (user.host == null) return;
router.push(`/instance-info/${user.host}`);
},
}] : []), {
icon: 'ti ti-share',
text: i18n.ts.copyProfileUrl,
Expand Down

0 comments on commit 816925b

Please sign in to comment.