enhance(frontend): リモートのユーザーはメニューから直接リモートで表示できるように
This commit is contained in:
parent
7beb4ed131
commit
ce93f8e041
|
@ -170,7 +170,14 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter
|
||||||
action: () => {
|
action: () => {
|
||||||
copyToClipboard(`${user.host ?? host}/@${user.username}.atom`);
|
copyToClipboard(`${user.host ?? host}/@${user.username}.atom`);
|
||||||
},
|
},
|
||||||
}, {
|
}, ...(user.host !== null && user.url !== null ? [{
|
||||||
|
icon: 'ti ti-external-link',
|
||||||
|
text: i18n.ts.showOnRemote,
|
||||||
|
action: () => {
|
||||||
|
if (user.url === null) return;
|
||||||
|
window.open(user.url, '_blank', 'noopener');
|
||||||
|
},
|
||||||
|
}] : []), {
|
||||||
icon: 'ti ti-share',
|
icon: 'ti ti-share',
|
||||||
text: i18n.ts.copyProfileUrl,
|
text: i18n.ts.copyProfileUrl,
|
||||||
action: () => {
|
action: () => {
|
||||||
|
|
Loading…
Reference in New Issue