Commit 0e50e9d9 authored by Mike Greiling's avatar Mike Greiling

update dispatcher to allow for dynamic imports until webpack plugin is updated

parent 58b8b807
...@@ -111,6 +111,8 @@ import Activities from './activities'; ...@@ -111,6 +111,8 @@ import Activities from './activities';
return false; return false;
} }
const fail = () => Flash('Error loading dynamic module');
path = page.split(':'); path = page.split(':');
shortcut_handler = null; shortcut_handler = null;
...@@ -545,7 +547,7 @@ import Activities from './activities'; ...@@ -545,7 +547,7 @@ import Activities from './activities';
new CILintEditor(); new CILintEditor();
break; break;
case 'users:show': case 'users:show':
new UserCallout(); import('./pages/users/show').then(m => m.default()).catch(fail);
break; break;
case 'admin:conversational_development_index:show': case 'admin:conversational_development_index:show':
new UserCallout(); new UserCallout();
......
import UserCallout from '~/user_callout';
export default () => new UserCallout();
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