summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKushal Pandya <kushal@gitlab.com>2018-04-05 13:55:55 +0530
committerKushal Pandya <kushal@gitlab.com>2018-04-06 14:26:30 +0530
commit388f43b6111bf35561988d327c462ab75afc34f6 (patch)
treea27b3a122575bfb4dae5367c06d4b317ab633429
parent1db4ea20c6ce67559a5c28b6b423abe292354dd8 (diff)
downloadgitlab-ce-388f43b6111bf35561988d327c462ab75afc34f6.tar.gz
Add map for supported noteable types
-rw-r--r--app/assets/javascripts/notes/constants.js6
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,
+};