diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-04-03 08:42:05 -0400 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-04-03 13:42:05 +0100 |
commit | 36c74d7b47253249ec83aedacf409a93de1d182f (patch) | |
tree | d603e715c19b7d6173f430b7bc929ba3a57f45d7 /webapp/components/delete_channel_modal.jsx | |
parent | 06e09a05530699be1319a339d027eb508bf24617 (diff) | |
download | chat-36c74d7b47253249ec83aedacf409a93de1d182f.tar.gz chat-36c74d7b47253249ec83aedacf409a93de1d182f.tar.bz2 chat-36c74d7b47253249ec83aedacf409a93de1d182f.zip |
PLT-5873 Renamed private groups to private channels (#5924)
* PLT-5873 Renamed private groups to private channels in web app
* PLT-5873 Renamed private groups to private channels in server
Diffstat (limited to 'webapp/components/delete_channel_modal.jsx')
-rw-r--r-- | webapp/components/delete_channel_modal.jsx | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/webapp/components/delete_channel_modal.jsx b/webapp/components/delete_channel_modal.jsx index a6577a4a9..1893d28d1 100644 --- a/webapp/components/delete_channel_modal.jsx +++ b/webapp/components/delete_channel_modal.jsx @@ -3,7 +3,6 @@ import {Modal} from 'react-bootstrap'; import TeamStore from 'stores/team_store.jsx'; -import Constants from 'utils/constants.jsx'; import {FormattedMessage} from 'react-intl'; @@ -37,21 +36,6 @@ export default class DeleteChannelModal extends React.Component { } render() { - let channelTerm = ( - <FormattedMessage - id='delete_channel.channel' - defaultMessage='channel' - /> - ); - if (this.props.channel.type === Constants.PRIVATE_CHANNEL) { - channelTerm = ( - <FormattedMessage - id='delete_channel.group' - defaultMessage='group' - /> - ); - } - return ( <Modal show={this.state.show} @@ -70,10 +54,9 @@ export default class DeleteChannelModal extends React.Component { <div className='alert alert-danger'> <FormattedMessage id='delete_channel.question' - defaultMessage='This will delete the channel from the team and make its contents inaccessible for all users. Are you sure you wish to delete the {display_name} {term}?' + defaultMessage='This will delete the channel from the team and make its contents inaccessible for all users. Are you sure you wish to delete the {display_name} channel?' values={{ - display_name: this.props.channel.display_name, - term: (channelTerm) + display_name: this.props.channel.display_name }} /> </div> |