Commit 5594ea7e authored by Simon Knox's avatar Simon Knox

dispatcher pages for projects:clusters

parent e13a8ef4
...@@ -556,20 +556,14 @@ import Activities from './activities'; ...@@ -556,20 +556,14 @@ import Activities from './activities';
.catch(fail); .catch(fail);
break; break;
case 'projects:clusters:show': case 'projects:clusters:show':
import(/* webpackChunkName: "clusters" */ './clusters/clusters_bundle') import('./pages/projects/clusters/show')
.then(cluster => new cluster.default()) // eslint-disable-line new-cap .then(callDefault)
.catch((err) => { .catch(fail);
Flash(s__('ClusterIntegration|Problem setting up the cluster'));
throw err;
});
break; break;
case 'projects:clusters:index': case 'projects:clusters:index':
import(/* webpackChunkName: "clusters_index" */ './clusters/clusters_index') import('./pages/projects/clusters/index')
.then(clusterIndex => clusterIndex.default()) .then(callDefault)
.catch((err) => { .catch(fail);
Flash(s__('ClusterIntegration|Problem setting up the clusters list'));
throw err;
});
break; break;
} }
switch (path[0]) { switch (path[0]) {
......
import ClustersIndex from '~/clusters/clusters_index';
export default ClustersIndex;
import ClustersBundle from '~/clusters/clusters_bundle';
export default ClustersBundle;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment