debian-mirror-gitlab/app/assets/javascripts/notes/mixins/noteable.js
2018-05-09 12:01:36 +05:30

15 lines
259 B
JavaScript

import * as constants from '../constants';
export default {
props: {
note: {
type: Object,
required: true,
},
},
computed: {
noteableType() {
return constants.NOTEABLE_TYPE_MAPPING[this.note.noteable_type];
},
},
};