diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-11-03 14:09:27 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-11-03 11:09:27 -0700 |
commit | e6f8f44f58331303c9d8d1bbe0580edcaf5f6435 (patch) | |
tree | 425326192f9ab0b15e7441420608115de2e9d16d /webapp/routes | |
parent | fa5fc044f3dc6e537478b4c16eb8c91347454a4e (diff) | |
download | chat-e6f8f44f58331303c9d8d1bbe0580edcaf5f6435.tar.gz chat-e6f8f44f58331303c9d8d1bbe0580edcaf5f6435.tar.bz2 chat-e6f8f44f58331303c9d8d1bbe0580edcaf5f6435.zip |
Fixing store access design issues (#4436)
Diffstat (limited to 'webapp/routes')
-rw-r--r-- | webapp/routes/route_integrations.jsx | 19 |
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)); + } } ] }, |