Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gl_feature_flags_plugin.js « vue_shared « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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,
          } || {},
      };
    },
  });
};