Commit 0a25cdd7 authored by Clement Ho's avatar Clement Ho

[skip ci] Improve dispatcher

parent 21d968bf
...@@ -265,20 +265,12 @@ import Activities from './activities'; ...@@ -265,20 +265,12 @@ import Activities from './activities';
.catch(fail); .catch(fail);
break; break;
case 'projects:snippets:new': case 'projects:snippets:new':
import('./pages/projects/snippets/new')
.then(callDefault)
.catch(fail);
break;
case 'projects:snippets:edit':
import('./pages/projects/snippets/edit')
.then(callDefault)
.catch(fail);
break;
case 'projects:snippets:create': case 'projects:snippets:create':
import('./pages/projects/snippets/create') import('./pages/projects/snippets/create')
.then(callDefault) .then(callDefault)
.catch(fail); .catch(fail);
break; break;
case 'projects:snippets:edit':
case 'projects:snippets:update': case 'projects:snippets:update':
import('./pages/projects/snippets/update') import('./pages/projects/snippets/update')
.then(callDefault) .then(callDefault)
...@@ -305,7 +297,7 @@ import Activities from './activities'; ...@@ -305,7 +297,7 @@ import Activities from './activities';
.catch(fail); .catch(fail);
break; break;
case 'projects:releases:edit': case 'projects:releases:edit':
import('./pages/projects/releases') import('./pages/projects/releases/edit')
.then(callDefault) .then(callDefault)
.catch(fail); .catch(fail);
break; break;
......
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