summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/notes/mixins/noteable.js
blob: b68543d71c8e7b74ee612e62dce5662f535389d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import * as constants from '../constants';

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