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

track_ui_control.js « services « content_editor « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 61f130ea861a9d45877d0dc4505fcbc1afd11ffc (plain)
1
2
3
4
5
6
7
8
9
import Tracking from '~/tracking';
import { CONTENT_EDITOR_TRACKING_LABEL, TOOLBAR_CONTROL_TRACKING_ACTION } from '../constants';

export default ({ action = TOOLBAR_CONTROL_TRACKING_ACTION, property, value } = {}) =>
  Tracking.event(undefined, action, {
    label: CONTENT_EDITOR_TRACKING_LABEL,
    property,
    value,
  });