summaryrefslogtreecommitdiffstats
path: root/web/react/components/new_channel_flow.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-10-28 14:44:02 -0700
committerCorey Hulen <corey@hulen.com>2015-10-28 14:44:02 -0700
commit89f67cd11dbb71d42a8809976715d6df86d46c95 (patch)
tree3e3c50d16a6dea22f5270ab61255c975e3eb6147 /web/react/components/new_channel_flow.jsx
parent9312272234c9bb41741ac174fb4b19c73426dce0 (diff)
parent019bf6a7fed85138a6a3be6ef70fbb994be49abe (diff)
downloadchat-89f67cd11dbb71d42a8809976715d6df86d46c95.tar.gz
chat-89f67cd11dbb71d42a8809976715d6df86d46c95.tar.bz2
chat-89f67cd11dbb71d42a8809976715d6df86d46c95.zip
Merge pull request #1199 from hmhealey/plt600
PLT-600 Renamed channel description to channel header and added channel purpose field
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..d6280d118 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: '',
+ channelPurpose: '',
nameModified: false
};
}
@@ -43,7 +43,7 @@ export default class NewChannelFlow extends React.Component {
flowState: SHOW_NEW_CHANNEL,
channelDisplayName: '',
channelName: '',
- channelDescription: '',
+ channelPurpose: '',
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.purpose = this.state.channelPurpose;
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
+ channelPurpose: data.purpose
});
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
+ purpose: this.state.channelPurpose
};
let showChannelModal = false;