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

27 lines
1,006 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-11-08 19:23:39 +05:30
export const MERGE_REQUEST_NOTEABLE_TYPE = 'MergeRequest';
2018-03-27 19:54:05 +05:30
export const UNRESOLVE_NOTE_METHOD_NAME = 'delete';
export const RESOLVE_NOTE_METHOD_NAME = 'post';
2018-11-08 19:23:39 +05:30
export const DESCRIPTION_TYPE = 'changed the description';
2018-12-13 13:39:08 +05:30
export const HISTORY_ONLY_FILTER_VALUE = 2;
export const DISCUSSION_FILTERS_DEFAULT_VALUE = 0;
2019-02-15 15:39:39 +05:30
export const DISCUSSION_TAB_LABEL = 'show';
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,
};