summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-07-31 16:09:29 -0400
committerJoramWilander <jwawilander@gmail.com>2015-07-31 16:09:29 -0400
commit633c39499b8a8ebbf334e41c002a787af0106ea2 (patch)
treea50fd16f458f427da2fdc5917ef7aebc29f15ac4 /web/react
parent7f1dd8525503fa080d5cec5ebd48eab53e0b612c (diff)
downloadchat-633c39499b8a8ebbf334e41c002a787af0106ea2.tar.gz
chat-633c39499b8a8ebbf334e41c002a787af0106ea2.tar.bz2
chat-633c39499b8a8ebbf334e41c002a787af0106ea2.zip
switching to a new PM channel now works in the more modal
Diffstat (limited to 'web/react')
-rw-r--r--web/react/components/more_direct_channels.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/more_direct_channels.jsx b/web/react/components/more_direct_channels.jsx
index 182d8884d..901cd228f 100644
--- a/web/react/components/more_direct_channels.jsx
+++ b/web/react/components/more_direct_channels.jsx
@@ -2,6 +2,7 @@
// See License.txt for license information.
var ChannelStore = require('../stores/channel_store.jsx');
+var TeamStore = require('../stores/team_store.jsx');
var utils = require('../utils/utils.jsx');
module.exports = React.createClass({
@@ -35,7 +36,7 @@ module.exports = React.createClass({
);
} else {
return (
- <li key={channel.name} className={active}><a className={"sidebar-channel " + titleClass} href={"/channels/"+channel.name}>{badge}{channel.display_name}</a></li>
+ <li key={channel.name} className={active}><a className={"sidebar-channel " + titleClass} href={TeamStore.getCurrentTeamUrl() + "/channels/"+channel.name}>{badge}{channel.display_name}</a></li>
);
}
});