Select the previous tab or redirect to /connect when closing a tab, move some CSS from inline react styles to classes

This commit is contained in:
khlieng 2015-05-14 01:42:25 +02:00
parent 92de7cb8ef
commit 0eca6a1823
7 changed files with 145 additions and 71 deletions

View file

@ -6,15 +6,4 @@ var tabActions = Reflux.createActions([
'select'
]);
tabActions.select.preEmit = (server, channel) => {
if (channel) {
while (channel[0] === '#') {
channel = channel.slice(1);
}
routeActions.navigate('/' + server + '/' + channel);
} else {
routeActions.navigate('/' + server);
}
};
module.exports = tabActions;