mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: add a link to invites on quick access profile panel (#11202)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user