mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-25 07:25:12 +00:00
upd: add ability to open remote profile in user dropdown
Closes transfem-org/Sharkey#176
This commit is contained in:
parent
3d0b754332
commit
958b97a50c
4 changed files with 10 additions and 1 deletions
|
@ -55,6 +55,7 @@ addToAntenna: "Add to antenna"
|
||||||
sendMessage: "Send a message"
|
sendMessage: "Send a message"
|
||||||
copyRSS: "Copy RSS"
|
copyRSS: "Copy RSS"
|
||||||
copyUsername: "Copy username"
|
copyUsername: "Copy username"
|
||||||
|
openRemoteProfile: "Open remote profile"
|
||||||
copyUserId: "Copy user ID"
|
copyUserId: "Copy user ID"
|
||||||
copyNoteId: "Copy note ID"
|
copyNoteId: "Copy note ID"
|
||||||
copyFileId: "Copy file ID"
|
copyFileId: "Copy file ID"
|
||||||
|
|
1
locales/index.d.ts
vendored
1
locales/index.d.ts
vendored
|
@ -58,6 +58,7 @@ export interface Locale {
|
||||||
"sendMessage": string;
|
"sendMessage": string;
|
||||||
"copyRSS": string;
|
"copyRSS": string;
|
||||||
"copyUsername": string;
|
"copyUsername": string;
|
||||||
|
"openRemoteProfile": string;
|
||||||
"copyUserId": string;
|
"copyUserId": string;
|
||||||
"copyNoteId": string;
|
"copyNoteId": string;
|
||||||
"copyFileId": string;
|
"copyFileId": string;
|
||||||
|
|
|
@ -55,6 +55,7 @@ addToAntenna: "アンテナに追加"
|
||||||
sendMessage: "メッセージを送信"
|
sendMessage: "メッセージを送信"
|
||||||
copyRSS: "RSSをコピー"
|
copyRSS: "RSSをコピー"
|
||||||
copyUsername: "ユーザー名をコピー"
|
copyUsername: "ユーザー名をコピー"
|
||||||
|
openRemoteProfile: "リモートプロファイルを開く"
|
||||||
copyUserId: "ユーザーIDをコピー"
|
copyUserId: "ユーザーIDをコピー"
|
||||||
copyNoteId: "ノートIDをコピー"
|
copyNoteId: "ノートIDをコピー"
|
||||||
copyFileId: "ファイルIDをコピー"
|
copyFileId: "ファイルIDをコピー"
|
||||||
|
|
|
@ -176,7 +176,13 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router
|
||||||
const canonical = user.host === null ? `@${user.username}` : `@${user.username}@${toUnicode(user.host)}`;
|
const canonical = user.host === null ? `@${user.username}` : `@${user.username}@${toUnicode(user.host)}`;
|
||||||
copyToClipboard(`${url}/${canonical}`);
|
copyToClipboard(`${url}/${canonical}`);
|
||||||
},
|
},
|
||||||
}, {
|
}, ...(user.host ? [{
|
||||||
|
icon: 'ph-share ph-bold ph-lg',
|
||||||
|
text: i18n.ts.openRemoteProfile,
|
||||||
|
action: () => {
|
||||||
|
open(`${user.uri}`, '_blank');
|
||||||
|
},
|
||||||
|
}] : []), {
|
||||||
icon: 'ph-envelope ph-bold ph-lg',
|
icon: 'ph-envelope ph-bold ph-lg',
|
||||||
text: i18n.ts.sendMessage,
|
text: i18n.ts.sendMessage,
|
||||||
action: () => {
|
action: () => {
|
||||||
|
|
Loading…
Reference in a new issue