ユーザーメニュー順序の変更
This commit is contained in:
parent
b9279aa4ce
commit
6c3c3dab6c
|
@ -189,13 +189,7 @@ export function getUserMenu(user: misskey.entities.UserDetailed, router: Router
|
||||||
action: () => {
|
action: () => {
|
||||||
os.post({ specified: user, initialText: `@${user.username} ` });
|
os.post({ specified: user, initialText: `@${user.username} ` });
|
||||||
},
|
},
|
||||||
}, ...(defaultStore.state.nicknameEnabled ? [{
|
}, meId !== user.id ? {
|
||||||
icon: 'ti ti-edit',
|
|
||||||
text: i18n.ts.editNickName,
|
|
||||||
action: () => {
|
|
||||||
editNickname(user);
|
|
||||||
},
|
|
||||||
}] : []), meId !== user.id ? {
|
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: 'ti ti-messages',
|
icon: 'ti ti-messages',
|
||||||
text: i18n.ts.startMessaging,
|
text: i18n.ts.startMessaging,
|
||||||
|
@ -204,7 +198,13 @@ export function getUserMenu(user: misskey.entities.UserDetailed, router: Router
|
||||||
icon: 'ti ti-users',
|
icon: 'ti ti-users',
|
||||||
text: i18n.ts.inviteToGroup,
|
text: i18n.ts.inviteToGroup,
|
||||||
action: inviteGroup,
|
action: inviteGroup,
|
||||||
} : undefined, null, {
|
} : undefined, null, ...(defaultStore.state.nicknameEnabled ? [{
|
||||||
|
icon: 'ti ti-edit',
|
||||||
|
text: i18n.ts.editNickName,
|
||||||
|
action: () => {
|
||||||
|
editNickname(user);
|
||||||
|
},
|
||||||
|
}] : []), {
|
||||||
icon: 'ti ti-pencil',
|
icon: 'ti ti-pencil',
|
||||||
text: i18n.ts.editMemo,
|
text: i18n.ts.editMemo,
|
||||||
action: () => {
|
action: () => {
|
||||||
|
|
Loading…
Reference in a new issue