DEV: Add classes to quick-access-profile items (#10185)

This commit is contained in:
Mark VanLandingham 2020-07-08 02:30:12 -05:00 committed by GitHub
parent 6be7a66ba7
commit a9292086f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 5 deletions

View File

@ -45,31 +45,36 @@ createWidgetFrom(QuickAccessPanel, "quick-access-profile", {
{ {
icon: "user", icon: "user",
href: `${this.attrs.path}/summary`, href: `${this.attrs.path}/summary`,
content: I18n.t("user.summary.title") content: I18n.t("user.summary.title"),
className: "summary"
}, },
{ {
icon: "stream", icon: "stream",
href: `${this.attrs.path}/activity`, href: `${this.attrs.path}/activity`,
content: I18n.t("user.activity_stream") content: I18n.t("user.activity_stream"),
className: "activity"
} }
]; ];
if (this.siteSettings.enable_personal_messages) { if (this.siteSettings.enable_personal_messages) {
defaultItems.push({ defaultItems.push({
icon: "envelope", icon: "envelope",
href: `${this.attrs.path}/messages`, href: `${this.attrs.path}/messages`,
content: I18n.t("user.private_messages") content: I18n.t("user.private_messages"),
className: "messages"
}); });
} }
defaultItems.push( defaultItems.push(
{ {
icon: "pencil-alt", icon: "pencil-alt",
href: `${this.attrs.path}/activity/drafts`, href: `${this.attrs.path}/activity/drafts`,
content: I18n.t("user_action_groups.15") content: I18n.t("user_action_groups.15"),
className: "drafts"
}, },
{ {
icon: "cog", icon: "cog",
href: `${this.attrs.path}/preferences`, href: `${this.attrs.path}/preferences`,
content: I18n.t("user.preferences") content: I18n.t("user.preferences"),
className: "preferences"
} }
); );
return defaultItems; return defaultItems;