Commit bf35f604 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'jnnkl-remove-eventlistener-feature-flag-user-new' into 'master'

Remove obsolete DOMContentLoadedEventListener

See merge request gitlab-org/gitlab!54558
parents db00525b 5d63b81b
/* eslint-disable no-new */
import Vue from 'vue'; import Vue from 'vue';
import Vuex from 'vuex'; import Vuex from 'vuex';
import NewUserList from '~/user_lists/components/new_user_list.vue'; import NewUserList from '~/user_lists/components/new_user_list.vue';
...@@ -5,10 +7,9 @@ import createStore from '~/user_lists/store/new'; ...@@ -5,10 +7,9 @@ import createStore from '~/user_lists/store/new';
Vue.use(Vuex); Vue.use(Vuex);
document.addEventListener('DOMContentLoaded', () => { const el = document.getElementById('js-new-user-list');
const el = document.getElementById('js-new-user-list'); const { userListsDocsPath, featureFlagsPath } = el.dataset;
const { userListsDocsPath, featureFlagsPath } = el.dataset; new Vue({
return new Vue({
el, el,
store: createStore(el.dataset), store: createStore(el.dataset),
provide: { provide: {
...@@ -18,5 +19,4 @@ document.addEventListener('DOMContentLoaded', () => { ...@@ -18,5 +19,4 @@ document.addEventListener('DOMContentLoaded', () => {
render(h) { render(h) {
return h(NewUserList); return h(NewUserList);
}, },
});
}); });
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