Changes the word channel to group for priavte groups
Этот коммит содержится в:
@@ -175,6 +175,11 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var channelTerm = 'Channel';
|
||||||
|
if (channel.type === 'P') {
|
||||||
|
channelTerm = 'Group';
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<table className='channel-header alt'>
|
<table className='channel-header alt'>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -196,18 +201,18 @@ module.exports = React.createClass({
|
|||||||
<li role='presentation'><a role='menuitem' data-toggle='modal' data-target='#channel_members' href='#'>Manage Members</a></li>
|
<li role='presentation'><a role='menuitem' data-toggle='modal' data-target='#channel_members' href='#'>Manage Members</a></li>
|
||||||
: null
|
: null
|
||||||
}
|
}
|
||||||
<li role='presentation'><a role='menuitem' href='#' data-toggle='modal' data-target='#edit_channel' data-desc={channel.description} data-title={channel.display_name} data-channelid={channel.id}>Set Channel Description...</a></li>
|
<li role='presentation'><a role='menuitem' href='#' data-toggle='modal' data-target='#edit_channel' data-desc={channel.description} data-title={channel.display_name} data-channelid={channel.id}>Set {channelTerm} Description...</a></li>
|
||||||
<li role='presentation'><a role='menuitem' href='#' data-toggle='modal' data-target='#channel_notifications' data-title={channel.display_name} data-channelid={channel.id}>Notification Preferences</a></li>
|
<li role='presentation'><a role='menuitem' href='#' data-toggle='modal' data-target='#channel_notifications' data-title={channel.display_name} data-channelid={channel.id}>Notification Preferences</a></li>
|
||||||
{isAdmin && !ChannelStore.isDefault(channel) ?
|
{isAdmin && !ChannelStore.isDefault(channel) ?
|
||||||
<li role='presentation'><a role='menuitem' href='#' data-toggle='modal' data-target='#rename_channel' data-display={channel.display_name} data-name={channel.name} data-channelid={channel.id}>Rename Channel...</a></li>
|
<li role='presentation'><a role='menuitem' href='#' data-toggle='modal' data-target='#rename_channel' data-display={channel.display_name} data-name={channel.name} data-channelid={channel.id}>Rename {channelTerm}...</a></li>
|
||||||
: null
|
: null
|
||||||
}
|
}
|
||||||
{isAdmin && !ChannelStore.isDefault(channel) ?
|
{isAdmin && !ChannelStore.isDefault(channel) ?
|
||||||
<li role='presentation'><a role='menuitem' href='#' data-toggle='modal' data-target='#delete_channel' data-title={channel.display_name} data-channelid={channel.id}>Delete Channel...</a></li>
|
<li role='presentation'><a role='menuitem' href='#' data-toggle='modal' data-target='#delete_channel' data-title={channel.display_name} data-channelid={channel.id}>Delete {channelTerm}...</a></li>
|
||||||
: null
|
: null
|
||||||
}
|
}
|
||||||
{!ChannelStore.isDefault(channel) ?
|
{!ChannelStore.isDefault(channel) ?
|
||||||
<li role='presentation'><a role='menuitem' href='#' onClick={this.handleLeave}>Leave Channel</a></li>
|
<li role='presentation'><a role='menuitem' href='#' onClick={this.handleLeave}>Leave {channelTerm}</a></li>
|
||||||
: null
|
: null
|
||||||
}
|
}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -107,6 +107,11 @@ module.exports = React.createClass({
|
|||||||
serverError = <div className='form-group has-error'><label className='control-label'>{this.state.serverError}</label></div>;
|
serverError = <div className='form-group has-error'><label className='control-label'>{this.state.serverError}</label></div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var channelTerm = 'Channel';
|
||||||
|
if (this.state.channelType === 'P') {
|
||||||
|
channelTerm = 'Group';
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='modal fade' id='new_channel' ref='modal' tabIndex='-1' role='dialog' aria-hidden='true'>
|
<div className='modal fade' id='new_channel' ref='modal' tabIndex='-1' role='dialog' aria-hidden='true'>
|
||||||
<div className='modal-dialog'>
|
<div className='modal-dialog'>
|
||||||
@@ -116,7 +121,7 @@ module.exports = React.createClass({
|
|||||||
<span aria-hidden='true'>×</span>
|
<span aria-hidden='true'>×</span>
|
||||||
<span className='sr-only'>Cancel</span>
|
<span className='sr-only'>Cancel</span>
|
||||||
</button>
|
</button>
|
||||||
<h4 className='modal-title'>New Channel</h4>
|
<h4 className='modal-title'>New {channelTerm}</h4>
|
||||||
</div>
|
</div>
|
||||||
<form role='form'>
|
<form role='form'>
|
||||||
<div className='modal-body'>
|
<div className='modal-body'>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user