summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pages/projects/feature_flags_user_lists/index/index.js
blob: 519e04e14fb1eca7c1b1d1f97a671c060cd0040e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* eslint-disable no-new */

import Vue from 'vue';
import Vuex from 'vuex';
import UserLists from '~/user_lists/components/user_lists.vue';
import createStore from '~/user_lists/store/index';

Vue.use(Vuex);

const el = document.querySelector('#js-user-lists');

const { featureFlagsHelpPagePath, errorStateSvgPath, projectId, newUserListPath } = el.dataset;

new Vue({
  el,
  store: createStore({ projectId }),
  provide: {
    featureFlagsHelpPagePath,
    errorStateSvgPath,
    newUserListPath,
  },
  render(createElement) {
    return createElement(UserLists);
  },
});