summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/issuable_create/components/issuable_create_root.vue
blob: 1ef4297603245a4efc8f69fb26d670ff51f84e2e (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<script>
import IssuableForm from './issuable_form.vue';

export default {
  components: {
    IssuableForm,
  },
  props: {
    descriptionPreviewPath: {
      type: String,
      required: true,
    },
    descriptionHelpPath: {
      type: String,
      required: true,
    },
    labelsFetchPath: {
      type: String,
      required: true,
    },
    labelsManagePath: {
      type: String,
      required: true,
    },
  },
};
</script>

<template>
  <div class="issuable-create-container">
    <slot name="title"></slot>
    <hr />
    <issuable-form
      :description-preview-path="descriptionPreviewPath"
      :description-help-path="descriptionHelpPath"
      :labels-fetch-path="labelsFetchPath"
      :labels-manage-path="labelsManagePath"
    >
      <template #actions="issuableMeta">
        <slot name="actions" v-bind="issuableMeta"></slot>
      </template>
    </issuable-form>
  </div>
</template>