Renamed Channel.Description to Channel.Header on the client

Этот коммит содержится в:
hmhealey
2015-10-27 10:32:13 -04:00
родитель 09b38404fa
Коммит 887d205b1f
10 изменённых файлов: 63 добавлений и 62 удалений

Просмотреть файл

@@ -36,7 +36,7 @@ export default class NewChannelModal extends React.Component {
handleChange() {
const newData = {
displayName: ReactDOM.findDOMNode(this.refs.display_name).value,
description: ReactDOM.findDOMNode(this.refs.channel_desc).value
header: ReactDOM.findDOMNode(this.refs.channel_header).value
};
this.props.onDataChanged(newData);
}
@@ -136,22 +136,22 @@ export default class NewChannelModal extends React.Component {
</div>
<div className='form-group less'>
<div className='col-sm-3'>
<label className='form__label control-label'>{'Description'}</label>
<label className='form__label control-label'>{'Header'}</label>
<label className='form__label light'>{'(optional)'}</label>
</div>
<div className='col-sm-9'>
<textarea
className='form-control no-resize'
ref='channel_desc'
ref='channel_header'
rows='4'
placeholder='Description'
placeholder='Header'
maxLength='1024'
value={this.props.channelData.description}
value={this.props.channelData.header}
onChange={this.handleChange}
tabIndex='2'
/>
<p className='input__help'>
{'Description helps others decide whether to join this channel.'}
{'This text is shown in the channel header and supports markdown formatting.'}
</p>
{serverError}
</div>