diff options
author | Kushal Pandya <kushal@gitlab.com> | 2018-04-05 11:26:54 +0300 |
---|---|---|
committer | Kushal Pandya <kushal@gitlab.com> | 2018-04-06 11:56:39 +0300 |
commit | 223eeae1a774df4f8d7f132040ba10547184ec68 (patch) | |
tree | 59e35b2eb238df23663f509f7a14cf694e5b6e6e /app | |
parent | 15195f67840cd5369d776938b62b02aa939a4270 (diff) |
Return noteableType from app initial config
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/notes/components/notes_app.vue | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/app/assets/javascripts/notes/components/notes_app.vue b/app/assets/javascripts/notes/components/notes_app.vue index 5bd81c7cad6..ebfc827ac57 100644 --- a/app/assets/javascripts/notes/components/notes_app.vue +++ b/app/assets/javascripts/notes/components/notes_app.vue @@ -49,16 +49,7 @@ export default { computed: { ...mapGetters(['notes', 'getNotesDataByProp', 'discussionCount']), noteableType() { - // FIXME -- @fatihacet Get this from JSON data. - const { ISSUE_NOTEABLE_TYPE, MERGE_REQUEST_NOTEABLE_TYPE, EPIC_NOTEABLE_TYPE } = constants; - - if (this.noteableData.noteableType === EPIC_NOTEABLE_TYPE) { - return EPIC_NOTEABLE_TYPE; - } - - return this.noteableData.merge_params - ? MERGE_REQUEST_NOTEABLE_TYPE - : ISSUE_NOTEABLE_TYPE; + return this.noteableData.noteableType; }, allNotes() { if (this.isLoading) { |