Fixing store access design issues (#4436)

Этот коммит содержится в:
Christopher Speller
2016-11-03 14:09:27 -04:00
коммит произвёл Corey Hulen
родитель fa5fc044f3
Коммит e6f8f44f58
5 изменённых файлов: 104 добавлений и 53 удалений

Просмотреть файл

@@ -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));
}
}
]
},