Skip to content

A platform for community discussion. Free, open, simple.

UX: improve notification button title (#37646)

Kris3265d8abc0a5
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 207df02f42e..de4bbbb172a 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -324,6 +324,9 @@ en:
message: "We've updated this site, <span>please refresh</span> to keep things working smoothly."
dismiss: "Dismiss"
+ notifications_tracking:
+ tooltip: "Notification level: %{level}"
+
back_button: "Back"
welcome_banner:
diff --git a/frontend/discourse/app/components/notifications-tracking.gjs b/frontend/discourse/app/components/notifications-tracking.gjs
index 96cf7c43a66..e731bcc523c 100644
--- a/frontend/discourse/app/components/notifications-tracking.gjs
+++ b/frontend/discourse/app/components/notifications-tracking.gjs
@@ -42,13 +42,17 @@ class NotificationsTrackingTrigger extends Component {
);
}
+ get tooltip() {
+ return i18n("notifications_tracking.tooltip", { level: this.title });
+ }
+
<template>
<button
class={{concatClass
"btn btn-default"
(if this.showFullTitle "btn-icon-text" "no-text")
}}
- title={{i18n "user.preferences_nav.tracking"}}
+ title={{this.tooltip}}
...attributes
>
{{icon @selectedLevel.icon}}