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:
parent
92de7cb8ef
commit
0eca6a1823
7 changed files with 145 additions and 71 deletions
|
@ -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;
|
Loading…
Add table
Add a link
Reference in a new issue