debian-mirror-gitlab/app/assets/javascripts/users/index.js
2017-09-10 17:25:29 +05:30

19 lines
549 B
JavaScript

import Cookies from 'js-cookie';
import UserTabs from './user_tabs';
export default function initUserProfile(action) {
// place profile avatars to top
$('.profile-groups-avatars').tooltip({
placement: 'top',
});
// eslint-disable-next-line no-new
new UserTabs({ parentEl: '.user-profile', action });
// hide project limit message
$('.hide-project-limit-message').on('click', (e) => {
e.preventDefault();
Cookies.set('hide_project_limit_message', 'false');
$(this).parents('.project-limit-message').remove();
});
}