Welcome to mirror list, hosted at ThFree Co, Russian Federation.

track_invite_members.js « sidebar « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 45a3366197bcd0d34cfd60819ff8ef426c9e8322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import $ from 'jquery';
import Tracking from '~/tracking';

export default function initTrackInviteMembers(userDropdown) {
  const { trackAction, trackLabel } = userDropdown.querySelector(
    '.js-invite-members-track',
  ).dataset;

  $(userDropdown).on('shown.bs.dropdown', () => {
    Tracking.event(undefined, trackAction, {
      label: trackLabel,
    });
  });
}