mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 13:39:06 +01:00
feat: add view on remote server to user profile dropdowns
This commit is contained in:
parent
e858e13fd3
commit
6ddb96a392
1 changed files with 9 additions and 0 deletions
|
@ -260,6 +260,15 @@ export function getUserMenu(user, router: Router = mainRouter) {
|
||||||
to: `/my/messaging/${Acct.toString(user)}`,
|
to: `/my/messaging/${Acct.toString(user)}`,
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
|
user.host != null && user.url
|
||||||
|
? {
|
||||||
|
type: "a",
|
||||||
|
icon: "ph-arrow-square-out ph-bold ph-lg",
|
||||||
|
text: i18n.ts.showOnRemote,
|
||||||
|
href: user.url,
|
||||||
|
target: "_blank",
|
||||||
|
|
||||||
|
} : undefined,
|
||||||
null,
|
null,
|
||||||
{
|
{
|
||||||
icon: "ph-list-bullets ph-bold ph-lg",
|
icon: "ph-list-bullets ph-bold ph-lg",
|
||||||
|
|
Loading…
Reference in a new issue