diff options
Diffstat (limited to 'app/assets/javascripts/pages/users/index.js')
-rw-r--r-- | app/assets/javascripts/pages/users/index.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/app/assets/javascripts/pages/users/index.js b/app/assets/javascripts/pages/users/index.js index af55a5dc01a..d2c31314bba 100644 --- a/app/assets/javascripts/pages/users/index.js +++ b/app/assets/javascripts/pages/users/index.js @@ -1,11 +1,15 @@ import $ from 'jquery'; import { setCookie } from '~/lib/utils/common_utils'; import UserCallout from '~/user_callout'; -import { initReportAbuse } from '~/users/profile'; -import { initProfileTabs } from '~/profile'; +import { initProfileTabs, initUserAchievements } from '~/profile'; +import { initUserActionsApp } from '~/users/profile/actions'; import UserTabs from './user_tabs'; function initUserProfile(action) { + // TODO: Remove both Vue and legacy JS tabs code/feature flag uses with the + // removal of the old navigation. + // See https://gitlab.com/groups/gitlab-org/-/epics/11875. + if (gon.features?.profileTabsVue) { initProfileTabs(); } else { @@ -24,5 +28,6 @@ function initUserProfile(action) { const page = $('body').attr('data-page'); const action = page.split(':')[1]; initUserProfile(action); +initUserAchievements(); +initUserActionsApp(); new UserCallout(); // eslint-disable-line no-new -initReportAbuse(); |