summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/issue_show/components/fields/title.vue
blob: c3abb9fd9d579454fd1d6550348051aabb8e94cd (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
<script>
  import updateMixin from '../../mixins/update';

  export default {
    mixins: [updateMixin],
    props: {
      formState: {
        type: Object,
        required: true,
      },
    },
  };
</script>

<template>
  <fieldset>
    <label
      class="sr-only"
      for="issuable-title">
      Title
    </label>
    <input
      id="issuable-title"
      class="form-control"
      type="text"
      placeholder="Title"
      aria-label="Title"
      v-model="formState.title"
      @keydown.meta.enter="updateIssuable"
      @keydown.ctrl.enter="updateIssuable" />
  </fieldset>
</template>