提交 5594ea7e 编写于 作者: S Simon Knox

dispatcher pages for projects:clusters

上级 e13a8ef4
......@@ -556,20 +556,14 @@ import Activities from './activities';
.catch(fail);
break;
case 'projects:clusters:show':
import(/* webpackChunkName: "clusters" */ './clusters/clusters_bundle')
.then(cluster => new cluster.default()) // eslint-disable-line new-cap
.catch((err) => {
Flash(s__('ClusterIntegration|Problem setting up the cluster'));
throw err;
});
import('./pages/projects/clusters/show')
.then(callDefault)
.catch(fail);
break;
case 'projects:clusters:index':
import(/* webpackChunkName: "clusters_index" */ './clusters/clusters_index')
.then(clusterIndex => clusterIndex.default())
.catch((err) => {
Flash(s__('ClusterIntegration|Problem setting up the clusters list'));
throw err;
});
import('./pages/projects/clusters/index')
.then(callDefault)
.catch(fail);
break;
}
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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册