diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-11-05 13:32:06 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-11-05 14:12:31 -0500 |
commit | e29342d4267c81a709cdc19fe992762ae468e0d9 (patch) | |
tree | f091678b4b55aa4fae0017ad9a4fadcd3db2b1fc /web/react/utils/utils.jsx | |
parent | 52e75012c37f5af6a695995d3c133e63e2e4b725 (diff) | |
download | chat-e29342d4267c81a709cdc19fe992762ae468e0d9.tar.gz chat-e29342d4267c81a709cdc19fe992762ae468e0d9.tar.bz2 chat-e29342d4267c81a709cdc19fe992762ae468e0d9.zip |
Moved public and private channels into separate sections in the search autocomplete
Diffstat (limited to 'web/react/utils/utils.jsx')
-rw-r--r-- | web/react/utils/utils.jsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index 575b6d011..22826b150 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -1125,3 +1125,12 @@ export function sortByDisplayName(a, b) { } return 0; } + +export function getChannelTerm(channelType) { + let channelTerm = 'Channel'; + if (channelType === Constants.PRIVATE_CHANNEL) { + channelTerm = 'Group'; + } + + return channelTerm; +} |