Commit 40426de7 authored by Brandon Labuschagne's avatar Brandon Labuschagne

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

Remove obsolete DOMContentLoadedEventListener

See merge request gitlab-org/gitlab!54557
parents f64f0fc9 4b787f81
import Vue from 'vue'; import featureFlagsUserListInit from '~/projects/feature_flags_user_lists/show/index';
import Vuex from 'vuex';
import UserList from '~/user_lists/components/user_list.vue';
import createStore from '~/user_lists/store/show';
Vue.use(Vuex); featureFlagsUserListInit();
document.addEventListener('DOMContentLoaded', () => {
const el = document.getElementById('js-edit-user-list');
return new Vue({
el,
store: createStore(el.dataset),
render(h) {
const { emptyStatePath } = el.dataset;
return h(UserList, { props: { emptyStatePath } });
},
});
});
import Vue from 'vue';
import Vuex from 'vuex';
import UserList from '~/user_lists/components/user_list.vue';
import createStore from '~/user_lists/store/show';
Vue.use(Vuex);
export default function featureFlagsUserListInit() {
const el = document.getElementById('js-edit-user-list');
if (!el) {
return null;
}
return new Vue({
el,
store: createStore(el.dataset),
render(h) {
const { emptyStatePath } = el.dataset;
return h(UserList, { props: { emptyStatePath } });
},
});
}
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