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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-05-12 09:07:53 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-12 09:07:53 +0300
commit90726a8ccc9df6d9b5ff4f5e1eb31d015c1db8e2 (patch)
treec5992348be5d8d81656ce665efd6980bfa8fbf71 /app/assets/javascripts/vue_shared/components/user_popover
parent48d9e7ff8ddfe152686d450fa5ac511f12d42d5b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/vue_shared/components/user_popover')
-rw-r--r--app/assets/javascripts/vue_shared/components/user_popover/user_popover.vue12
1 files changed, 1 insertions, 11 deletions
diff --git a/app/assets/javascripts/vue_shared/components/user_popover/user_popover.vue b/app/assets/javascripts/vue_shared/components/user_popover/user_popover.vue
index 01a0b134b7f..7d1b80826ae 100644
--- a/app/assets/javascripts/vue_shared/components/user_popover/user_popover.vue
+++ b/app/assets/javascripts/vue_shared/components/user_popover/user_popover.vue
@@ -78,17 +78,7 @@ export default {
return !this.userIsLoading && this.user.username !== gon.current_username;
},
shouldRenderToggleFollowButton() {
- return (
- /*
- * We're using `gon` to access feature flag because this component
- * gets initialized dynamically multiple times from `user_popovers.js`
- * for each user link present on the page, and using `glFeatureFlagMixin()`
- * doesn't inject available feature flags into the component during init.
- */
- gon?.features?.followInUserPopover &&
- this.isNotCurrentUser &&
- typeof this.user?.isFollowed !== 'undefined'
- );
+ return this.isNotCurrentUser && typeof this.user?.isFollowed !== 'undefined';
},
toggleFollowButtonText() {
if (this.toggleFollowLoading) return null;