Skip to content
Snippets Groups Projects

POC: Render the user profile tabs in Vue Router

Closed Shane Maglangit requested to merge 497477-encapsulate-vue-profile-tabs-in-vue-router into master
10 files
+ 107
12
Compare changes
  • Side-by-side
  • Inline
Files
10
import $ from 'jquery';
import $ from 'jquery';
import { setCookie } from '~/lib/utils/common_utils';
import { setCookie } from '~/lib/utils/common_utils';
import UserCallout from '~/user_callout';
import UserCallout from '~/user_callout';
import { initProfileTabs, initUserAchievements } from '~/profile';
import { initUserAchievements, initUserProfileApp } from '~/profile';
import { initUserActionsApp } from '~/users/profile/actions';
import { initUserActionsApp } from '~/users/profile/actions';
import UserTabs from './user_tabs';
import UserTabs from './user_tabs';
@@ -11,7 +11,7 @@ function initUserProfile(action) {
@@ -11,7 +11,7 @@ function initUserProfile(action) {
// See https://gitlab.com/gitlab-org/gitlab/-/issues/435899.
// See https://gitlab.com/gitlab-org/gitlab/-/issues/435899.
if (gon.features?.profileTabsVue) {
if (gon.features?.profileTabsVue) {
initProfileTabs();
initUserProfileApp();
} else {
} else {
// eslint-disable-next-line no-new
// eslint-disable-next-line no-new
new UserTabs({ parentEl: '.user-profile', action });
new UserTabs({ parentEl: '.user-profile', action });
Loading