From 371b1e04eb892109cd44f18230e0247dc5aabe43 Mon Sep 17 00:00:00 2001 From: nickago Date: Wed, 5 Aug 2015 10:38:40 -0700 Subject: Changes the word channel to group for priavte groups --- web/react/components/channel_header.jsx | 13 +++++++++---- web/react/components/new_channel.jsx | 7 ++++++- 2 files changed, 15 insertions(+), 5 deletions(-) (limited to 'web/react/components') diff --git a/web/react/components/channel_header.jsx b/web/react/components/channel_header.jsx index b6182cfa5..dbfe39015 100644 --- a/web/react/components/channel_header.jsx +++ b/web/react/components/channel_header.jsx @@ -175,6 +175,11 @@ module.exports = React.createClass({ } } + var channelTerm = 'Channel'; + if (channel.type === 'P') { + channelTerm = 'Group'; + } + return ( @@ -196,18 +201,18 @@ module.exports = React.createClass({
  • Manage Members
  • : null } -
  • Set Channel Description...
  • +
  • Set {channelTerm} Description...
  • Notification Preferences
  • {isAdmin && !ChannelStore.isDefault(channel) ? -
  • Rename Channel...
  • +
  • Rename {channelTerm}...
  • : null } {isAdmin && !ChannelStore.isDefault(channel) ? -
  • Delete Channel...
  • +
  • Delete {channelTerm}...
  • : null } {!ChannelStore.isDefault(channel) ? -
  • Leave Channel
  • +
  • Leave {channelTerm}
  • : null } diff --git a/web/react/components/new_channel.jsx b/web/react/components/new_channel.jsx index 93884f6eb..ffcbfd32d 100644 --- a/web/react/components/new_channel.jsx +++ b/web/react/components/new_channel.jsx @@ -107,6 +107,11 @@ module.exports = React.createClass({ serverError =
    ; } + var channelTerm = 'Channel'; + if (this.state.channelType === 'P') { + channelTerm = 'Group'; + } + return (