diff --git a/web/react/components/channel_header.jsx b/web/react/components/channel_header.jsx index b6182cfa59..dbfe39015b 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 93884f6ebb..ffcbfd32d6 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 (