Use noteable type map from constants

This commit is contained in:
Kushal Pandya 2018-04-05 13:56:15 +05:30
parent 388f43b611
commit 15195f6784
1 changed files with 1 additions and 10 deletions

View File

@ -9,16 +9,7 @@ export default {
},
computed: {
noteableType() {
switch (this.note.noteable_type) {
case 'MergeRequest':
return constants.MERGE_REQUEST_NOTEABLE_TYPE;
case 'Issue':
return constants.ISSUE_NOTEABLE_TYPE;
case 'Epic':
return constants.EPIC_NOTEABLE_TYPE;
default:
return '';
}
return constants.NOTEABLE_TYPE_MAPPING[this.note.noteable_type];
},
},
};