UX: add a link to invites on quick access profile panel (#11202)
This commit is contained in:
parent
255633578c
commit
6ea9eb0260
|
@ -56,6 +56,15 @@ createWidgetFrom(QuickAccessPanel, "quick-access-profile", {
|
|||
},
|
||||
];
|
||||
|
||||
if (this.currentUser.can_invite_to_forum) {
|
||||
defaultItems.push({
|
||||
icon: "user-plus",
|
||||
href: `${this.attrs.path}/invited`,
|
||||
content: I18n.t("user.invited.title"),
|
||||
className: "invites",
|
||||
});
|
||||
}
|
||||
|
||||
defaultItems.push(
|
||||
{
|
||||
icon: "pencil-alt",
|
||||
|
|
Loading…
Reference in New Issue