From e6f8f44f58331303c9d8d1bbe0580edcaf5f6435 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Thu, 3 Nov 2016 14:09:27 -0400 Subject: Fixing store access design issues (#4436) --- webapp/routes/route_integrations.jsx | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'webapp/routes') 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)); + } } ] }, -- cgit v1.2.3-1-g7c22