diff --git a/web/react/components/more_channels.jsx b/web/react/components/more_channels.jsx
index db61e5f49e..5779225771 100644
--- a/web/react/components/more_channels.jsx
+++ b/web/react/components/more_channels.jsx
@@ -24,6 +24,7 @@ export default class MoreChannels extends React.Component {
this.onListenerChange = this.onListenerChange.bind(this);
this.handleJoin = this.handleJoin.bind(this);
this.handleNewChannel = this.handleNewChannel.bind(this);
+ this.createChannelRow = this.createChannelRow.bind(this);
var initState = getStateFromStores();
initState.channelType = '';
@@ -70,13 +71,49 @@ export default class MoreChannels extends React.Component {
$(ReactDOM.findDOMNode(this.refs.modal)).modal('hide');
this.setState({showNewChannelModal: true});
}
+ createChannelRow(channel, index) {
+ let joinButton;
+ if (this.state.joiningChannel === index) {
+ joinButton = (
+
+ );
+ } else {
+ joinButton = (
+
+ );
+ }
+
+ return (
+
{channel.display_name}
+{channel.purpose}
+|
- {channel.display_name} -{channel.purpose} - |
- - {joinButton} - | -