UX: add a link to invites on quick access profile panel (#11202)

This commit is contained in:
Arpit Jalan 2020-11-11 22:02:27 +05:30 committed by GitHub
parent 255633578c
commit 6ea9eb0260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -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",