summaryrefslogtreecommitdiffstats
path: root/webapp/components/delete_channel_modal.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-04-03 08:42:05 -0400
committerGeorge Goldberg <george@gberg.me>2017-04-03 13:42:05 +0100
commit36c74d7b47253249ec83aedacf409a93de1d182f (patch)
treed603e715c19b7d6173f430b7bc929ba3a57f45d7 /webapp/components/delete_channel_modal.jsx
parent06e09a05530699be1319a339d027eb508bf24617 (diff)
downloadchat-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.jsx21
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>