Commit f290e2ea authored by Jacob Schatz's avatar Jacob Schatz

Merge branch 'service-desk-webpack-bundle-refactor' into 'master'

Removed service_desk webpack bundle tag

See merge request gitlab-org/gitlab-ee!4837
parents 42ccb344 8d1e704f
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
- content_for :page_specific_javascripts do - content_for :page_specific_javascripts do
= webpack_bundle_tag('common_vue') = webpack_bundle_tag('common_vue')
= webpack_bundle_tag('service_desk')
.project-edit-container .project-edit-container
%section.settings.general-settings.no-animate{ class: ('expanded' if expanded) } %section.settings.general-settings.no-animate{ class: ('expanded' if expanded) }
......
...@@ -58,7 +58,6 @@ function generateEntries() { ...@@ -58,7 +58,6 @@ function generateEntries() {
// EE-only // EE-only
ide: 'ee/ide/index.js', ide: 'ee/ide/index.js',
geo_nodes: 'ee/geo_nodes', geo_nodes: 'ee/geo_nodes',
service_desk: 'ee/projects/settings_service_desk/service_desk_bundle.js',
}; };
return Object.assign(manualEntries, autoEntries); return Object.assign(manualEntries, autoEntries);
......
...@@ -4,6 +4,7 @@ import UsersSelect from '~/users_select'; ...@@ -4,6 +4,7 @@ import UsersSelect from '~/users_select';
import UserCallout from '~/user_callout'; import UserCallout from '~/user_callout';
import groupsSelect from '~/groups_select'; import groupsSelect from '~/groups_select';
import ApproversSelect from 'ee/approvers_select'; import ApproversSelect from 'ee/approvers_select';
import initServiceDesk from 'ee/projects/settings_service_desk';
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
new UsersSelect(); new UsersSelect();
...@@ -12,4 +13,5 @@ document.addEventListener('DOMContentLoaded', () => { ...@@ -12,4 +13,5 @@ document.addEventListener('DOMContentLoaded', () => {
new UserCallout({ className: 'js-service-desk-callout' }); new UserCallout({ className: 'js-service-desk-callout' });
new UserCallout({ className: 'js-mr-approval-callout' }); new UserCallout({ className: 'js-mr-approval-callout' });
new ApproversSelect(); new ApproversSelect();
initServiceDesk();
}); });
...@@ -2,7 +2,7 @@ import Vue from 'vue'; ...@@ -2,7 +2,7 @@ import Vue from 'vue';
import { convertPermissionToBoolean } from '~/lib/utils/common_utils'; import { convertPermissionToBoolean } from '~/lib/utils/common_utils';
import serviceDeskRoot from './components/service_desk_root.vue'; import serviceDeskRoot from './components/service_desk_root.vue';
document.addEventListener('DOMContentLoaded', () => { export default () => {
const serviceDeskRootElement = document.querySelector('.js-service-desk-setting-root'); const serviceDeskRootElement = document.querySelector('.js-service-desk-setting-root');
if (serviceDeskRootElement) { if (serviceDeskRootElement) {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
...@@ -32,4 +32,4 @@ document.addEventListener('DOMContentLoaded', () => { ...@@ -32,4 +32,4 @@ document.addEventListener('DOMContentLoaded', () => {
}, },
}); });
} }
}); };
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