summaryrefslogtreecommitdiffstats
path: root/webapp/routes
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-11-03 14:09:27 -0400
committerCorey Hulen <corey@hulen.com>2016-11-03 11:09:27 -0700
commite6f8f44f58331303c9d8d1bbe0580edcaf5f6435 (patch)
tree425326192f9ab0b15e7441420608115de2e9d16d /webapp/routes
parentfa5fc044f3dc6e537478b4c16eb8c91347454a4e (diff)
downloadchat-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.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));
+ }
}
]
},