debian-mirror-gitlab/app/assets/javascripts/notes/constants.js

23 lines
809 B
JavaScript
Raw Normal View History

2018-03-17 18:26:18 +05:30
export const DISCUSSION_NOTE = 'DiscussionNote';
2018-03-27 19:54:05 +05:30
export const DIFF_NOTE = 'DiffNote';
2018-03-17 18:26:18 +05:30
export const DISCUSSION = 'discussion';
export const NOTE = 'note';
export const SYSTEM_NOTE = 'systemNote';
export const COMMENT = 'comment';
export const OPENED = 'opened';
export const REOPENED = 'reopened';
export const CLOSED = 'closed';
export const EMOJI_THUMBSUP = 'thumbsup';
export const EMOJI_THUMBSDOWN = 'thumbsdown';
2018-03-27 19:54:05 +05:30
export const ISSUE_NOTEABLE_TYPE = 'issue';
2018-05-09 12:01:36 +05:30
export const EPIC_NOTEABLE_TYPE = 'epic';
2018-03-27 19:54:05 +05:30
export const MERGE_REQUEST_NOTEABLE_TYPE = 'merge_request';
export const UNRESOLVE_NOTE_METHOD_NAME = 'delete';
export const RESOLVE_NOTE_METHOD_NAME = 'post';
2018-05-09 12:01:36 +05:30
export const NOTEABLE_TYPE_MAPPING = {
Issue: ISSUE_NOTEABLE_TYPE,
MergeRequest: MERGE_REQUEST_NOTEABLE_TYPE,
Epic: EPIC_NOTEABLE_TYPE,
};