Skip to content

Commit

Permalink
Update dialog help text of 'MoreDirectChannels' and 'AddUsersToTeam' …
Browse files Browse the repository at this point in the history
…modals (mattermost#6744)
  • Loading branch information
saturninoabril authored and jwilander committed Jun 26, 2017
1 parent a011f00 commit c9e0ebd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion components/add_users_to_team/add_users_to_team.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export default class AddUsersToTeam extends React.Component {
const numRemainingText = (
<FormattedMessage
id='multiselect.numPeopleRemaining'
defaultMessage='You can add {num, number} more {num, plural, one {person} other {people}}. '
defaultMessage='Use ↑↓ to browse, ↵ to select. You can add {num, number} more {num, plural, one {person} other {people}}. '
values={{
num: MAX_SELECTABLE_VALUES - this.state.values.length
}}
Expand Down
2 changes: 1 addition & 1 deletion components/more_direct_channels/more_direct_channels.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export default class MoreDirectChannels extends React.Component {
const numRemainingText = (
<FormattedMessage
id='multiselect.numPeopleRemaining'
defaultMessage='You can add {num, number} more {num, plural, one {person} other {people}}. '
defaultMessage='Use ↑↓ to browse, ↵ to select. You can add {num, number} more {num, plural, one {person} other {people}}. '
values={{
num: MAX_SELECTABLE_VALUES - this.state.values.length
}}
Expand Down
6 changes: 0 additions & 6 deletions components/multiselect/multiselect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,6 @@ export default class MultiSelect extends React.Component {
</button>
</div>
<div className='multi-select__help'>
<div className='hidden-xs'>
<FormattedMessage
id='multiselect.instructions'
defaultMessage='Use up/down arrows to navigate and enter to select'
/>
</div>
{numRemainingText}
{noteTextContainer}
</div>
Expand Down
3 changes: 1 addition & 2 deletions i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1792,8 +1792,7 @@
"msg_typing.someone": "Someone",
"multiselect.add": "Add",
"multiselect.go": "Go",
"multiselect.instructions": "Use up/down arrows to navigate and enter to select",
"multiselect.numPeopleRemaining": "You can add {num, number} more {num, plural, one {person} other {people}}. ",
"multiselect.numPeopleRemaining": "Use ↑↓ to browse, ↵ to select. You can add {num, number} more {num, plural, one {person} other {people}}. ",
"multiselect.numRemaining": "You can add {num, number} more",
"multiselect.placeholder": "Search and add members",
"navbar.addMembers": "Add Members",
Expand Down

0 comments on commit c9e0ebd

Please sign in to comment.