From a9292086f49a7ec2753bd77240d07adb81a25364 Mon Sep 17 00:00:00 2001 From: Mark VanLandingham Date: Wed, 8 Jul 2020 02:30:12 -0500 Subject: [PATCH] DEV: Add classes to quick-access-profile items (#10185) --- .../discourse/app/widgets/quick-access-profile.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/discourse/app/widgets/quick-access-profile.js b/app/assets/javascripts/discourse/app/widgets/quick-access-profile.js index f1c209cb694..278d5774775 100644 --- a/app/assets/javascripts/discourse/app/widgets/quick-access-profile.js +++ b/app/assets/javascripts/discourse/app/widgets/quick-access-profile.js @@ -45,31 +45,36 @@ createWidgetFrom(QuickAccessPanel, "quick-access-profile", { { icon: "user", href: `${this.attrs.path}/summary`, - content: I18n.t("user.summary.title") + content: I18n.t("user.summary.title"), + className: "summary" }, { icon: "stream", 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) { defaultItems.push({ icon: "envelope", href: `${this.attrs.path}/messages`, - content: I18n.t("user.private_messages") + content: I18n.t("user.private_messages"), + className: "messages" }); } defaultItems.push( { icon: "pencil-alt", href: `${this.attrs.path}/activity/drafts`, - content: I18n.t("user_action_groups.15") + content: I18n.t("user_action_groups.15"), + className: "drafts" }, { icon: "cog", href: `${this.attrs.path}/preferences`, - content: I18n.t("user.preferences") + content: I18n.t("user.preferences"), + className: "preferences" } ); return defaultItems;