Commit 824eeb4a authored by Jacob Schatz's avatar Jacob Schatz

Merge branch 'webpack-ldap' into 'master'

Remove ldap group links webpack entry point

See merge request gitlab-org/gitlab-ee!4795
parents 1058c890 aa7b0c2a
......@@ -63,7 +63,6 @@ function generateEntries() {
// EE-only
geo_nodes: 'ee/geo_nodes',
ldap_group_links: 'ee/groups/ldap_group_links.js',
mirrors: 'ee/mirrors',
service_desk: 'ee/projects/settings_service_desk/service_desk_bundle.js',
};
......
document.addEventListener('DOMContentLoaded', () => {
export default () => {
const showGroupLink = () => {
const $cnLink = $('.cn-link');
const $filterLink = $('.filter-link');
......@@ -12,4 +12,4 @@ document.addEventListener('DOMContentLoaded', () => {
$('input[name="sync_method"]').on('change', showGroupLink);
showGroupLink();
});
};
import initLDAPGroupsSelect from 'ee/ldap_groups_select';
import initLDAPGroupLinks from 'ee/groups/ldap_group_links';
document.addEventListener('DOMContentLoaded', initLDAPGroupsSelect);
document.addEventListener('DOMContentLoaded', () => {
initLDAPGroupsSelect();
initLDAPGroupLinks();
});
import '~/pages/admin/groups/new/index';
import initLDAPGroupLinks from 'ee/groups/ldap_group_links';
document.addEventListener('DOMContentLoaded', initLDAPGroupLinks);
import initLDAPGroupsSelect from 'ee/ldap_groups_select';
import initLDAPGroupLinks from 'ee/groups/ldap_group_links';
document.addEventListener('DOMContentLoaded', initLDAPGroupsSelect);
document.addEventListener('DOMContentLoaded', () => {
initLDAPGroupsSelect();
initLDAPGroupLinks();
});
- content_for :page_specific_javascripts do
= webpack_bundle_tag 'ldap_group_links'
%section.ldap-group-links
= form_for [group, LdapGroupLink.new], html: { class: 'form-horizontal' } do |f|
.form-holder
......
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