BigW Consortium Gitlab

Uses `callDefault`

parent 3b9a1f36
...@@ -440,10 +440,14 @@ import Activities from './activities'; ...@@ -440,10 +440,14 @@ import Activities from './activities';
break; break;
case 'admin:groups:create': case 'admin:groups:create':
case 'admin:groups:new': case 'admin:groups:new':
import('./pages/admin/groups/new').then(m => m.default()).catch(fail); import('./pages/admin/groups/new')
.then(callDefault)
.catch(fail);
break; break;
case 'admin:groups:edit': case 'admin:groups:edit':
import('./pages/admin/groups/edit').then(m => m.default()).catch(fail); import('./pages/admin/groups/edit')
.then(callDefault)
.catch(fail);
break; break;
case 'groups:edit': case 'groups:edit':
groupAvatar(); groupAvatar();
...@@ -562,7 +566,9 @@ import Activities from './activities'; ...@@ -562,7 +566,9 @@ import Activities from './activities';
import('./pages/import/fogbugz/new_user_map').then(m => m.default()).catch(fail); import('./pages/import/fogbugz/new_user_map').then(m => m.default()).catch(fail);
break; break;
case 'admin:impersonation_tokens:index': case 'admin:impersonation_tokens:index':
import('./pages/admin/impersonation_tokens').then(m => m.default()).catch(fail); import('./pages/admin/impersonation_tokens')
.then(callDefault)
.catch(fail);
break; break;
case 'profiles:personal_access_tokens:index': case 'profiles:personal_access_tokens:index':
new DueDateSelectors(); new DueDateSelectors();
...@@ -599,35 +605,51 @@ import Activities from './activities'; ...@@ -599,35 +605,51 @@ import Activities from './activities';
// needed in rspec // needed in rspec
gl.u2fAuthenticate = u2fAuthenticate; gl.u2fAuthenticate = u2fAuthenticate;
case 'admin': case 'admin':
import('./pages/admin').then(m => m.default()).catch(fail); import('./pages/admin')
.then(callDefault)
.catch(fail);
switch (path[1]) { switch (path[1]) {
case 'broadcast_messages': case 'broadcast_messages':
import('./pages/admin/broadcast_messages').then(m => m.default()).catch(fail); import('./pages/admin/broadcast_messages')
.then(callDefault)
.catch(fail);
break; break;
case 'cohorts': case 'cohorts':
import('./pages/admin/cohorts').then(m => m.default()).catch(fail); import('./pages/admin/cohorts')
.then(callDefault)
.catch(fail);
break; break;
case 'groups': case 'groups':
switch (path[2]) { switch (path[2]) {
case 'show': case 'show':
import('./pages/admin/groups/show').then(m => m.default()).catch(fail); import('./pages/admin/groups/show')
.then(callDefault)
.catch(fail);
break; break;
} }
break; break;
case 'projects': case 'projects':
import('./pages/admin/projects').then(m => m.default()).catch(fail); import('./pages/admin/projects')
.then(callDefault)
.catch(fail);
break; break;
case 'labels': case 'labels':
switch (path[2]) { switch (path[2]) {
case 'new': case 'new':
import('./pages/admin/labels/new').then(m => m.default()).catch(fail); import('./pages/admin/labels/new')
.then(callDefault)
.catch(fail);
break; break;
case 'edit': case 'edit':
import('./pages/admin/labels/edit').then(m => m.default()).catch(fail); import('./pages/admin/labels/edit')
.then(callDefault)
.catch(fail);
break; break;
} }
case 'abuse_reports': case 'abuse_reports':
import('./pages/admin/abuse_reports').then(m => m.default()).catch(fail); import('./pages/admin/abuse_reports')
.then(callDefault)
.catch(fail);
break; break;
} }
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