16 lines
400 B
JavaScript
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.',
|
|
),
|
|
});
|
|
});
|
|
}
|