summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/work_items/pages/work_item_root.vue
blob: b8f2bcff25d89401340343362586e54e1c27a811 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<script>
import { TYPE_WORK_ITEM } from '~/graphql_shared/constants';
import { convertToGraphQLId } from '~/graphql_shared/utils';
import WorkItemDetail from '../components/work_item_detail.vue';

export default {
  components: {
    WorkItemDetail,
  },
  props: {
    id: {
      type: String,
      required: true,
    },
  },
  computed: {
    gid() {
      return convertToGraphQLId(TYPE_WORK_ITEM, this.id);
    },
  },
};
</script>

<template>
  <work-item-detail :work-item-id="gid" />
</template>