debian-mirror-gitlab/app/assets/javascripts/notes/mixins/noteable.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
252 B
JavaScript
Raw Normal View History

2018-03-27 19:54:05 +05:30
import * as constants from '../constants';
export default {
computed: {
noteableType() {
2018-11-08 19:23:39 +05:30
const note = this.discussion ? this.discussion.notes[0] : this.note;
return constants.NOTEABLE_TYPE_MAPPING[note.noteable_type];
2018-03-27 19:54:05 +05:30
},
},
};