mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-28 17:03:02 +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"
|
||||
copyRSS: "Copy RSS"
|
||||
copyUsername: "Copy username"
|
||||
openRemoteProfile: "Open remote profile"
|
||||
copyUserId: "Copy user ID"
|
||||
copyNoteId: "Copy note 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;
|
||||
"copyRSS": string;
|
||||
"copyUsername": string;
|
||||
"openRemoteProfile": string;
|
||||
"copyUserId": string;
|
||||
"copyNoteId": string;
|
||||
"copyFileId": string;
|
||||
|
|
|
@ -55,6 +55,7 @@ addToAntenna: "アンテナに追加"
|
|||
sendMessage: "メッセージを送信"
|
||||
copyRSS: "RSSをコピー"
|
||||
copyUsername: "ユーザー名をコピー"
|
||||
openRemoteProfile: "リモートプロファイルを開く"
|
||||
copyUserId: "ユーザーIDをコピー"
|
||||
copyNoteId: "ノート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)}`;
|
||||
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',
|
||||
text: i18n.ts.sendMessage,
|
||||
action: () => {
|
||||
|
|
Loading…
Reference in a new issue