diff options
author | Kushal Pandya <kushal@gitlab.com> | 2018-04-05 13:55:55 +0530 |
---|---|---|
committer | Kushal Pandya <kushal@gitlab.com> | 2018-04-06 14:26:30 +0530 |
commit | 388f43b6111bf35561988d327c462ab75afc34f6 (patch) | |
tree | a27b3a122575bfb4dae5367c06d4b317ab633429 | |
parent | 1db4ea20c6ce67559a5c28b6b423abe292354dd8 (diff) | |
download | gitlab-ce-388f43b6111bf35561988d327c462ab75afc34f6.tar.gz |
Add map for supported noteable types
-rw-r--r-- | app/assets/javascripts/notes/constants.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/notes/constants.js b/app/assets/javascripts/notes/constants.js index 68f8cb1cf1e..c4de4826eda 100644 --- a/app/assets/javascripts/notes/constants.js +++ b/app/assets/javascripts/notes/constants.js @@ -14,3 +14,9 @@ export const EPIC_NOTEABLE_TYPE = 'epic'; export const MERGE_REQUEST_NOTEABLE_TYPE = 'merge_request'; export const UNRESOLVE_NOTE_METHOD_NAME = 'delete'; export const RESOLVE_NOTE_METHOD_NAME = 'post'; + +export const NOTEABLE_TYPE_MAPPING = { + Issue: ISSUE_NOTEABLE_TYPE, + MergeRequest: MERGE_REQUEST_NOTEABLE_TYPE, + Epic: EPIC_NOTEABLE_TYPE, +}; |