debian-mirror-gitlab/app/assets/javascripts/notes/mixins/noteable.js
2018-11-08 19:23:39 +05:30

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];
},
},
};