From 447c16800becbd0fe96a6110780c44e1dd4fb179 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 31 May 2016 15:23:22 -0400 Subject: [PATCH] UX: Add tooltip text for the timeline notifications button --- .../discourse/widgets/topic-notifications-button.js.es6 | 4 ++++ config/locales/client.en.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/app/assets/javascripts/discourse/widgets/topic-notifications-button.js.es6 b/app/assets/javascripts/discourse/widgets/topic-notifications-button.js.es6 index c9bc98642d5..ab70d1a9d71 100644 --- a/app/assets/javascripts/discourse/widgets/topic-notifications-button.js.es6 +++ b/app/assets/javascripts/discourse/widgets/topic-notifications-button.js.es6 @@ -33,6 +33,10 @@ export default createWidget('topic-notifications-button', { if (state.expanded) { return "open"; } }, + buildAttributes() { + return { title: I18n.t('topic.notifications.title') }; + }, + buttonFor(level) { const details = buttonDetails(level); return this.attach('button', { diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index c1e650e8ce2..467983bf462 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -1310,6 +1310,7 @@ en: position: "post %{current} of %{total}" notifications: + title: change how often you get notified about this topic reasons: "3_6": 'You will receive notifications because you are watching this category.' "3_5": 'You will receive notifications because you started watching this topic automatically.'