summaryrefslogtreecommitdiff
path: root/src/client/scripts/get-user-menu.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-04-22 22:29:33 +0900
committerGitHub <noreply@github.com>2021-04-22 22:29:33 +0900
commit246693b8484b72048cb515b76aa5f094f5fdeb56 (patch)
tree703f7636c363b480b20690495353691e09c98a27 /src/client/scripts/get-user-menu.ts
parentfix style (diff)
downloadsharkey-246693b8484b72048cb515b76aa5f094f5fdeb56.tar.gz
sharkey-246693b8484b72048cb515b76aa5f094f5fdeb56.tar.bz2
sharkey-246693b8484b72048cb515b76aa5f094f5fdeb56.zip
インスタンス管理画面作り直し (#7473)
* wip * wip * wip * wip
Diffstat (limited to 'src/client/scripts/get-user-menu.ts')
-rw-r--r--src/client/scripts/get-user-menu.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/scripts/get-user-menu.ts b/src/client/scripts/get-user-menu.ts
index ceb2bfe173..9a003b5c38 100644
--- a/src/client/scripts/get-user-menu.ts
+++ b/src/client/scripts/get-user-menu.ts
@@ -124,7 +124,13 @@ export function getUserMenu(user) {
action: () => {
copyToClipboard(`@${user.username}@${user.host || host}`);
}
- }, {
+ }, ($i && ($i.isAdmin || $i.isModerator)) ? {
+ icon: 'fas fa-info-circle',
+ text: i18n.locale.info,
+ action: () => {
+ os.pageWindow(`/instance/user/${user.id}`);
+ }
+ } : {
icon: 'fas fa-info-circle',
text: i18n.locale.info,
action: () => {