2021-05-27 08:10:56 -04:00
|
|
|
import $ from 'jquery';
|
|
|
|
import Tracking from '~/tracking';
|
|
|
|
|
|
|
|
export default function initTrackInviteMembers(userDropdown) {
|
2021-09-15 14:11:29 -04:00
|
|
|
const { trackAction, trackLabel } = userDropdown.querySelector(
|
|
|
|
'.js-invite-members-track',
|
|
|
|
).dataset;
|
2021-05-27 08:10:56 -04:00
|
|
|
|
|
|
|
$(userDropdown).on('shown.bs.dropdown', () => {
|
2021-09-15 14:11:29 -04:00
|
|
|
Tracking.event(undefined, trackAction, {
|
2021-05-27 08:10:56 -04:00
|
|
|
label: trackLabel,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|