diff options
Diffstat (limited to 'app/assets/javascripts/pages/users/show/index.js')
-rw-r--r-- | app/assets/javascripts/pages/users/show/index.js | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/app/assets/javascripts/pages/users/show/index.js b/app/assets/javascripts/pages/users/show/index.js index f1b4e00c810..c213753257d 100644 --- a/app/assets/javascripts/pages/users/show/index.js +++ b/app/assets/javascripts/pages/users/show/index.js @@ -1,16 +1,7 @@ -import { s__ } from '~/locale'; -import { createAlert } from '~/flash'; +import { initProfileTabs, initUserAchievements } from '~/profile'; -if (window.gon.features?.profileTabsVue) { - import('~/profile') - .then(({ initProfileTabs }) => { - initProfileTabs(); - }) - .catch(() => { - createAlert({ - message: s__( - 'UserProfile|An error occurred loading the profile. Please refresh the page to try again.', - ), - }); - }); +if (gon.features?.profileTabsVue) { + initProfileTabs(); } + +initUserAchievements(); |