summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_shared/gl_feature_flags_plugin.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/vue_shared/gl_feature_flags_plugin.js')
-rw-r--r--app/assets/javascripts/vue_shared/gl_feature_flags_plugin.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/javascripts/vue_shared/gl_feature_flags_plugin.js b/app/assets/javascripts/vue_shared/gl_feature_flags_plugin.js
index e1734809bce..c12ffaac40a 100644
--- a/app/assets/javascripts/vue_shared/gl_feature_flags_plugin.js
+++ b/app/assets/javascripts/vue_shared/gl_feature_flags_plugin.js
@@ -1,7 +1,12 @@
export default (Vue) => {
Vue.mixin({
provide: {
- glFeatures: { ...((window.gon && window.gon.features) || {}) },
+ glFeatures:
+ {
+ ...window.gon?.features,
+ // TODO: extract into glLicensedFeatures https://gitlab.com/gitlab-org/gitlab/-/issues/322460
+ ...window.gon?.licensed_features,
+ } || {},
},
});
};