title.vue 568 Bytes
Newer Older
Phil Hughes's avatar
Phil Hughes committed
1
<script>
2 3
  import updateMixin from '../../mixins/update';

Phil Hughes's avatar
Phil Hughes committed
4
  export default {
5
    mixins: [updateMixin],
Phil Hughes's avatar
Phil Hughes committed
6
    props: {
7
      formState: {
Phil Hughes's avatar
Phil Hughes committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
        type: Object,
        required: true,
      },
    },
  };
</script>

<template>
  <fieldset>
    <label
      class="sr-only"
      for="issue-title">
      Title
    </label>
    <input
      id="issue-title"
      class="form-control"
      type="text"
      placeholder="Issue title"
      aria-label="Issue title"
28 29
      v-model="formState.title"
      @keydown.meta.enter="updateIssuable" />
Phil Hughes's avatar
Phil Hughes committed
30 31
  </fieldset>
</template>