Close tablist on all interactions

This commit is contained in:
Ken-Håvard Lieng 2015-06-10 00:59:41 +02:00
parent e51c9522de
commit 2a5f7c3afc
2 changed files with 13 additions and 10 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,6 +6,7 @@ var channelStore = require('../stores/channel');
var privateChatStore = require('../stores/privateChat'); var privateChatStore = require('../stores/privateChat');
var serverStore = require('../stores/server'); var serverStore = require('../stores/server');
var routeActions = require('../actions/route'); var routeActions = require('../actions/route');
var tabActions = require('../actions/tab');
var PureMixin = require('../mixins/pure'); var PureMixin = require('../mixins/pure');
var TabList = React.createClass({ var TabList = React.createClass({
@ -18,10 +19,12 @@ var TabList = React.createClass({
handleConnectClick() { handleConnectClick() {
routeActions.navigate('connect'); routeActions.navigate('connect');
tabActions.hideMenu();
}, },
handleSettingsClick() { handleSettingsClick() {
routeActions.navigate('settings'); routeActions.navigate('settings');
tabActions.hideMenu();
}, },
render() { render() {