summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_shared/components/blob_viewers/mixins.js
blob: 7a76888c916e6fa33237d9afdd785e18402a54e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { SNIPPET_MEASURE_BLOBS_CONTENT } from '~/performance_constants';
import eventHub from '~/blob/components/eventhub';

export default {
  props: {
    content: {
      type: String,
      required: true,
    },
    type: {
      type: String,
      required: true,
    },
  },
  mounted() {
    eventHub.$emit(SNIPPET_MEASURE_BLOBS_CONTENT);
  },
};