Commit 91b825c5 authored by Tom Quirk's avatar Tom Quirk

Initialise Design Management Vue app in CE

Imports ~/design_management chunk in CE so that
we attempt to mount Vue app in a CE Issue. Previously,
this happened on EE issues.

Design Management will still not be visible in CE, as
the `.js-design-management.` element is only
present on EE.
parent c76d3e2e
......@@ -12,6 +12,16 @@ export default function() {
initIssueableApp();
initSentryErrorStackTraceApp();
initRelatedMergeRequestsApp();
// js-design-management is currently EE-only.
// This will be moved to CE as part of https://gitlab.com/gitlab-org/gitlab/-/issues/212566#frontend
// at which point this conditional can be removed.
if (document.getElementById('js-design-management')) {
import(/* webpackChunkName: 'design_management' */ '~/design_management')
.then(module => module.default())
.catch(() => {});
}
new Issue(); // eslint-disable-line no-new
new ShortcutsIssuable(); // eslint-disable-line no-new
new ZenMode(); // eslint-disable-line no-new
......
......@@ -10,12 +10,6 @@ document.addEventListener('DOMContentLoaded', () => {
}
initRelatedIssues();
if (document.getElementById('js-design-management')) {
import(/* webpackChunkName: 'design_management' */ '~/design_management')
.then(module => module.default())
.catch(() => {});
}
// eslint-disable-next-line no-new
new UserCallout({ className: 'js-epics-sidebar-callout' });
// eslint-disable-next-line no-new
......
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