diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-11 18:13:01 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-11 18:13:01 +0300 |
commit | 046d6f52772ada2e08af58627f03bc18e0c932b5 (patch) | |
tree | 798d9218ecbc945593bc7d592199e78c613b9b4d /app/assets/javascripts/vue_merge_request_widget/mr_widget_options.vue | |
parent | cb787abec6e64a220b2807469023f4de210dac10 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/vue_merge_request_widget/mr_widget_options.vue')
-rw-r--r-- | app/assets/javascripts/vue_merge_request_widget/mr_widget_options.vue | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/vue_merge_request_widget/mr_widget_options.vue b/app/assets/javascripts/vue_merge_request_widget/mr_widget_options.vue index 3aded60e5c8..3ac1e881658 100644 --- a/app/assets/javascripts/vue_merge_request_widget/mr_widget_options.vue +++ b/app/assets/javascripts/vue_merge_request_widget/mr_widget_options.vue @@ -207,6 +207,12 @@ export default { hasAlerts() { return this.mr.mergeError || this.showMergePipelineForkWarning; }, + shouldShowExtension() { + return ( + window.gon?.features?.refactorMrWidgetsExtensions || + window.gon?.features?.refactorMrWidgetsExtensionsUser + ); + }, }, watch: { 'mr.machineValue': { |