diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-10-27 12:34:21 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-10-27 12:46:31 -0400 |
commit | 019bf6a7fed85138a6a3be6ef70fbb994be49abe (patch) | |
tree | 36868a7c0b8efb6a530d15e5aaab2f0188a9e220 /web/react/components/new_channel_modal.jsx | |
parent | 61da22ea32a71015191e94665171e9703bd39211 (diff) | |
download | chat-019bf6a7fed85138a6a3be6ef70fbb994be49abe.tar.gz chat-019bf6a7fed85138a6a3be6ef70fbb994be49abe.tar.bz2 chat-019bf6a7fed85138a6a3be6ef70fbb994be49abe.zip |
Added ability to see/edit channel purpose in the client
Diffstat (limited to 'web/react/components/new_channel_modal.jsx')
-rw-r--r-- | web/react/components/new_channel_modal.jsx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/web/react/components/new_channel_modal.jsx b/web/react/components/new_channel_modal.jsx index 09acad15f..c0cea496f 100644 --- a/web/react/components/new_channel_modal.jsx +++ b/web/react/components/new_channel_modal.jsx @@ -36,7 +36,7 @@ export default class NewChannelModal extends React.Component { handleChange() { const newData = { displayName: ReactDOM.findDOMNode(this.refs.display_name).value, - header: ReactDOM.findDOMNode(this.refs.channel_header).value + purpose: ReactDOM.findDOMNode(this.refs.channel_purpose).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'>{'Header'}</label> + <label className='form__label control-label'>{'Purpose'}</label> <label className='form__label light'>{'(optional)'}</label> </div> <div className='col-sm-9'> <textarea className='form-control no-resize' - ref='channel_header' + ref='channel_purpose' rows='4' - placeholder='Header' - maxLength='1024' - value={this.props.channelData.header} + placeholder='Purpose' + maxLength='128' + value={this.props.channelData.purpose} onChange={this.handleChange} tabIndex='2' /> <p className='input__help'> - {'This text is shown in the channel header and supports markdown formatting.'} + {`Describe how this ${channelTerm} should be used.`} </p> {serverError} </div> |