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 Vuex from 'vuex';
import NewUserList from '~/user_lists/components/new_user_list.vue';
......@@ -5,18 +7,16 @@ import createStore from '~/user_lists/store/new';
Vue.use(Vuex);
document.addEventListener('DOMContentLoaded', () => {
const el = document.getElementById('js-new-user-list');
const { userListsDocsPath, featureFlagsPath } = el.dataset;
return new Vue({
el,
store: createStore(el.dataset),
provide: {
userListsDocsPath,
featureFlagsPath,
},
render(h) {
return h(NewUserList);
},
});
const el = document.getElementById('js-new-user-list');
const { userListsDocsPath, featureFlagsPath } = el.dataset;
new Vue({
el,
store: createStore(el.dataset),
provide: {
userListsDocsPath,
featureFlagsPath,
},
render(h) {
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