Skip to content

Commit

Permalink
Add help text for 'Words that trigger mentions' (#5459)
Browse files Browse the repository at this point in the history
  • Loading branch information
joannekoong authored and jwilander committed Feb 21, 2017
1 parent 1f8a114 commit 7068307
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 14 additions & 1 deletion webapp/components/user_settings/user_settings_notifications.jsx
Expand Up @@ -608,17 +608,30 @@ export default class NotificationsTab extends React.Component {
</div>
);

const extraInfo = (
<span>
<FormattedMessage
id='user.settings.notifications.mentionsInfo'
defaultMessage='Mentions trigger when someone sends a message that includes your username (@{username}) or any of the options selected above.'
values={{
username: user.username
}}
/>
</span>
);

keysSection = (
<SettingItemMax
title={Utils.localizeMessage('user.settings.notifications.wordsTrigger', 'Words that trigger mentions')}
inputs={inputs}
submit={this.handleSubmit}
server_error={serverError}
updateSection={this.handleCancel}
extraInfo={extraInfo}
/>
);
} else {
let keys = [];
let keys = ['@' + user.username];
if (this.state.firstNameKey) {
keys.push(user.first_name);
}
Expand Down
1 change: 1 addition & 0 deletions webapp/i18n/en.json
Expand Up @@ -2128,6 +2128,7 @@
"user.settings.notifications.emailNotifications": "Email notifications",
"user.settings.notifications.header": "Notifications",
"user.settings.notifications.info": "Desktop notifications are available on Edge, Firefox, Safari, Chrome and Mattermost Desktop Apps.",
"user.settings.notifications.mentionsInfo": "Mentions trigger when someone sends a message that includes your username (\"@{username}\") or any of the options selected above.",
"user.settings.notifications.never": "Never",
"user.settings.notifications.noWords": "No words configured",
"user.settings.notifications.off": "Off",
Expand Down

0 comments on commit 7068307

Please sign in to comment.