summaryrefslogtreecommitdiffstats
path: root/webapp/routes/route_integrations.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/routes/route_integrations.jsx')
-rw-r--r--webapp/routes/route_integrations.jsx19
1 files changed, 15 insertions, 4 deletions
diff --git a/webapp/routes/route_integrations.jsx b/webapp/routes/route_integrations.jsx
index afaf284e9..0feb13bb7 100644
--- a/webapp/routes/route_integrations.jsx
+++ b/webapp/routes/route_integrations.jsx
@@ -48,17 +48,28 @@ export default {
},
{
path: 'commands',
- indexRoute: {
- getComponents: (location, callback) => {
- System.import('components/integrations/components/installed_commands.jsx').then(RouteUtils.importComponentSuccess(callback));
- }
+ getComponents: (location, callback) => {
+ System.import('components/integrations/components/commands_container.jsx').then(RouteUtils.importComponentSuccess(callback));
},
+ indexRoute: {onEnter: (nextState, replace) => replace(nextState.location.pathname + '/installed')},
childRoutes: [
{
+ path: 'installed',
+ getComponents: (location, callback) => {
+ System.import('components/integrations/components/installed_commands.jsx').then(RouteUtils.importComponentSuccess(callback));
+ }
+ },
+ {
path: 'add',
getComponents: (location, callback) => {
System.import('components/integrations/components/add_command.jsx').then(RouteUtils.importComponentSuccess(callback));
}
+ },
+ {
+ path: 'confirm',
+ getComponents: (location, callback) => {
+ System.import('components/integrations/components/confirm_integration.jsx').then(RouteUtils.importComponentSuccess(callback));
+ }
}
]
},