summaryrefslogtreecommitdiffstats
path: root/web/react/pages
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-10-16 19:05:55 -0700
committer=Corey Hulen <corey@hulen.com>2015-10-16 19:05:55 -0700
commita8f3f76c592928a0907fbaddd71ab6b8f68d28d6 (patch)
tree2052e2d5be650dc74bd21e429fb28bb59014912e /web/react/pages
parent8b2d7f391aedeb5d6bd6490b92bdadf5050e1c73 (diff)
downloadchat-a8f3f76c592928a0907fbaddd71ab6b8f68d28d6.tar.gz
chat-a8f3f76c592928a0907fbaddd71ab6b8f68d28d6.tar.bz2
chat-a8f3f76c592928a0907fbaddd71ab6b8f68d28d6.zip
Refactoring web classes to use multi-session
Diffstat (limited to 'web/react/pages')
-rw-r--r--web/react/pages/home.jsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/web/react/pages/home.jsx b/web/react/pages/home.jsx
index 5f0fa9d96..a59f2afd0 100644
--- a/web/react/pages/home.jsx
+++ b/web/react/pages/home.jsx
@@ -2,14 +2,15 @@
// See License.txt for license information.
var ChannelStore = require('../stores/channel_store.jsx');
+var TeamStore = require('../stores/team_store.jsx');
var Constants = require('../utils/constants.jsx');
-function setupHomePage(props) {
+function setupHomePage() {
var last = ChannelStore.getLastVisitedName();
if (last == null || last.length === 0) {
- window.location = props.TeamURL + '/channels/' + Constants.DEFAULT_CHANNEL;
+ window.location = TeamStore.getCurrentTeamUrl() + '/channels/' + Constants.DEFAULT_CHANNEL;
} else {
- window.location = props.TeamURL + '/channels/' + last;
+ window.location = TeamStore.getCurrentTeamUrl() + '/channels/' + last;
}
}