33 lines
759 B
Vue
33 lines
759 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>
|
|
<!-- eslint-disable vue/no-mutating-props -->
|
|
<input
|
|
id="issuable-title"
|
|
ref="input"
|
|
v-model="formState.title"
|
|
class="form-control qa-title-input gl-border-gray-200"
|
|
dir="auto"
|
|
type="text"
|
|
:placeholder="__('Title')"
|
|
:aria-label="__('Title')"
|
|
@keydown.meta.enter="updateIssuable"
|
|
@keydown.ctrl.enter="updateIssuable"
|
|
/>
|
|
<!-- eslint-enable vue/no-mutating-props -->
|
|
</fieldset>
|
|
</template>
|