diff options
author | enahum <nahumhbl@gmail.com> | 2016-09-20 13:00:21 -0300 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-09-20 12:00:21 -0400 |
commit | f8108efe35ec5b7d362cbb3890a7acdc8884b0f6 (patch) | |
tree | 6debff223d847cfb57c8046ba5e83063bdf6d55c /webapp | |
parent | e455bee39f2480782d350f156043141fb6bdab26 (diff) | |
download | chat-f8108efe35ec5b7d362cbb3890a7acdc8884b0f6.tar.gz chat-f8108efe35ec5b7d362cbb3890a7acdc8884b0f6.tar.bz2 chat-f8108efe35ec5b7d362cbb3890a7acdc8884b0f6.zip |
PLT-3338 Show username on Direct message search result (#4041)
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/components/search_results_item.jsx | 5 | ||||
-rw-r--r-- | webapp/i18n/en.json | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/webapp/components/search_results_item.jsx b/webapp/components/search_results_item.jsx index 2260f99ad..5cc0b4c54 100644 --- a/webapp/components/search_results_item.jsx +++ b/webapp/components/search_results_item.jsx @@ -72,7 +72,10 @@ export default class SearchResultsItem extends React.Component { channelName = ( <FormattedMessage id='search_item.direct' - defaultMessage='Direct Message' + defaultMessage='Direct Message (with {username})' + values={{ + username: Utils.displayUsernameForUser(Utils.getDirectTeammate(channel.id)) + }} /> ); } diff --git a/webapp/i18n/en.json b/webapp/i18n/en.json index 734be8c7d..c93ad1c60 100644 --- a/webapp/i18n/en.json +++ b/webapp/i18n/en.json @@ -1596,7 +1596,7 @@ "search_header.results": "Search Results", "search_header.title2": "Recent Mentions", "search_header.title3": "Flagged Posts", - "search_item.direct": "Direct Message", + "search_item.direct": "Direct Message (with {username})", "search_item.jump": "Jump", "search_results.because": "<ul><li>If you're searching a partial phrase (ex. searching \"rea\", looking for \"reach\" or \"reaction\"), append a * to your search term.</li><li>Two letter searches and common words like \"this\", \"a\" and \"is\" won't appear in search results due to excessive results returned.</li></ul>", "search_results.noResults": "No results found. Try again?", |