gitlab-org--gitlab-foss/app/assets/javascripts/notes/mixins/noteable.js
2018-06-21 12:22:40 +00:00

10 lines
252 B
JavaScript

import * as constants from '../constants';
export default {
computed: {
noteableType() {
const note = this.discussion ? this.discussion.notes[0] : this.note;
return constants.NOTEABLE_TYPE_MAPPING[note.noteable_type];
},
},
};