summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_shared/gl_feature_flags_plugin.js
blob: 79946ebaecd19ac831d5e6946572591eebc58941 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export default (Vue) => {
  Vue.mixin({
    provide() {
      return {
        glFeatures:
          {
            ...window.gon?.features,
            // TODO: extract into glLicensedFeatures https://gitlab.com/gitlab-org/gitlab/-/issues/322460
            ...window.gon?.licensed_features,
          } || {},
      };
    },
  });
};