diff options
author | David Lu <david.lu@hotmail.com> | 2016-07-14 15:56:49 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-07-14 11:56:49 -0800 |
commit | 0b200cc9245193aa01b00ecc8bf41483f6b32e7e (patch) | |
tree | 6548d918383d38689b949d03caf831ad2c81466f /webapp/components/new_channel_flow.jsx | |
parent | 70283c20f69576d52b4f35ed9c138749523c6ca7 (diff) | |
download | chat-0b200cc9245193aa01b00ecc8bf41483f6b32e7e.tar.gz chat-0b200cc9245193aa01b00ecc8bf41483f6b32e7e.tar.bz2 chat-0b200cc9245193aa01b00ecc8bf41483f6b32e7e.zip |
PLT-3266 Added channel header to create channel modal (#3559)
* Added channel header to create channel modal
removed React FindDOMNode
* made css changes
Diffstat (limited to 'webapp/components/new_channel_flow.jsx')
-rw-r--r-- | webapp/components/new_channel_flow.jsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webapp/components/new_channel_flow.jsx b/webapp/components/new_channel_flow.jsx index db06cf0be..f6e91afc4 100644 --- a/webapp/components/new_channel_flow.jsx +++ b/webapp/components/new_channel_flow.jsx @@ -65,6 +65,7 @@ class NewChannelFlow extends React.Component { channelDisplayName: '', channelName: '', channelPurpose: '', + channelHeader: '', nameModified: false }; } @@ -78,6 +79,7 @@ class NewChannelFlow extends React.Component { channelDisplayName: '', channelName: '', channelPurpose: '', + channelHeader: '', nameModified: false }); } @@ -99,6 +101,7 @@ class NewChannelFlow extends React.Component { name: this.state.channelName, display_name: this.state.channelDisplayName, purpose: this.state.channelPurpose, + header: this.state.channelHeader, type: this.state.channelType }; Client.createChannel( @@ -153,7 +156,8 @@ class NewChannelFlow extends React.Component { channelDataChanged(data) { this.setState({ channelDisplayName: data.displayName, - channelPurpose: data.purpose + channelPurpose: data.purpose, + channelHeader: data.header }); if (!this.state.nameModified) { this.setState({channelName: Utils.cleanUpUrlable(data.displayName.trim())}); |