Commit 4b787f81 authored by Jannik Lehmann's avatar Jannik Lehmann Committed by Brandon Labuschagne

Remove obsolete DOMContentLoadedEventListener

parent 95a4f817
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