summaryrefslogtreecommitdiffstats
path: root/web/react/components/new_channel_flow.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-10-27 10:32:13 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-10-27 12:46:31 -0400
commit887d205b1fbb3188331a324ba59b7ec187a2d772 (patch)
treeecb2ce256daa9d946350a6d1ff936d25e085ac77 /web/react/components/new_channel_flow.jsx
parent09b38404fa9aadd1b359863024f7def0f34de823 (diff)
downloadchat-887d205b1fbb3188331a324ba59b7ec187a2d772.tar.gz
chat-887d205b1fbb3188331a324ba59b7ec187a2d772.tar.bz2
chat-887d205b1fbb3188331a324ba59b7ec187a2d772.zip
Renamed Channel.Description to Channel.Header on the client
Diffstat (limited to 'web/react/components/new_channel_flow.jsx')
-rw-r--r--web/react/components/new_channel_flow.jsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/web/react/components/new_channel_flow.jsx b/web/react/components/new_channel_flow.jsx
index 186cfc2b0..8bcd0dacd 100644
--- a/web/react/components/new_channel_flow.jsx
+++ b/web/react/components/new_channel_flow.jsx
@@ -30,7 +30,7 @@ export default class NewChannelFlow extends React.Component {
flowState: SHOW_NEW_CHANNEL,
channelDisplayName: '',
channelName: '',
- channelDescription: '',
+ channelHeader: '',
nameModified: false
};
}
@@ -43,7 +43,7 @@ export default class NewChannelFlow extends React.Component {
flowState: SHOW_NEW_CHANNEL,
channelDisplayName: '',
channelName: '',
- channelDescription: '',
+ channelHeader: '',
nameModified: false
});
}
@@ -65,7 +65,7 @@ export default class NewChannelFlow extends React.Component {
const cu = UserStore.getCurrentUser();
channel.team_id = cu.team_id;
- channel.description = this.state.channelDescription;
+ channel.header = this.state.channelHeader;
channel.type = this.state.channelType;
Client.createChannel(channel,
@@ -109,7 +109,7 @@ export default class NewChannelFlow extends React.Component {
channelDataChanged(data) {
this.setState({
channelDisplayName: data.displayName,
- channelDescription: data.description
+ channelHeader: data.header
});
if (!this.state.nameModified) {
this.setState({channelName: Utils.cleanUpUrlable(data.displayName.trim())});
@@ -119,7 +119,7 @@ export default class NewChannelFlow extends React.Component {
const channelData = {
name: this.state.channelName,
displayName: this.state.channelDisplayName,
- description: this.state.channelDescription
+ header: this.state.channelHeader
};
let showChannelModal = false;