debian-mirror-gitlab/app/assets/javascripts/issue_show/components/fields/title.vue
2019-09-30 21:07:59 +05:30

31 lines
641 B
Vue

<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"
ref="input"
v-model="formState.title"
class="form-control qa-title-input"
dir="auto"
type="text"
:placeholder="__('Title')"
:aria-label="__('Title')"
@keydown.meta.enter="updateIssuable"
@keydown.ctrl.enter="updateIssuable"
/>
</fieldset>
</template>