debian-mirror-gitlab/app/assets/javascripts/pages/users/show/index.js
2023-04-23 21:23:45 +05:30

16 lines
400 B
JavaScript

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