summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pages/users/show/index.js
blob: f1b4e00c81035eb2e1cd821e66e4c866c2034fdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { s__ } from '~/locale';
import { createAlert } from '~/flash';

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.',
        ),
      });
    });
}