2017-09-10 17:25:29 +05:30
|
|
|
<script>
|
2018-12-13 13:39:08 +05:30
|
|
|
import updateMixin from '../../mixins/update';
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2018-12-13 13:39:08 +05:30
|
|
|
export default {
|
|
|
|
mixins: [updateMixin],
|
|
|
|
props: {
|
|
|
|
formState: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
2017-09-10 17:25:29 +05:30
|
|
|
},
|
2018-12-13 13:39:08 +05:30
|
|
|
},
|
|
|
|
};
|
2017-09-10 17:25:29 +05:30
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<fieldset>
|
2019-09-30 21:07:59 +05:30
|
|
|
<label class="sr-only" for="issuable-title">{{ __('Title') }}</label>
|
2021-03-11 19:13:27 +05:30
|
|
|
<!-- eslint-disable vue/no-mutating-props -->
|
2017-09-10 17:25:29 +05:30
|
|
|
<input
|
2018-03-17 18:26:18 +05:30
|
|
|
id="issuable-title"
|
2019-07-31 22:56:46 +05:30
|
|
|
ref="input"
|
2018-11-08 19:23:39 +05:30
|
|
|
v-model="formState.title"
|
2021-09-04 01:27:46 +05:30
|
|
|
class="form-control qa-title-input gl-border-gray-200"
|
2019-07-31 22:56:46 +05:30
|
|
|
dir="auto"
|
2017-09-10 17:25:29 +05:30
|
|
|
type="text"
|
2019-09-30 21:07:59 +05:30
|
|
|
:placeholder="__('Title')"
|
|
|
|
:aria-label="__('Title')"
|
2017-09-10 17:25:29 +05:30
|
|
|
@keydown.meta.enter="updateIssuable"
|
2019-02-15 15:39:39 +05:30
|
|
|
@keydown.ctrl.enter="updateIssuable"
|
|
|
|
/>
|
2021-03-11 19:13:27 +05:30
|
|
|
<!-- eslint-enable vue/no-mutating-props -->
|
2017-09-10 17:25:29 +05:30
|
|
|
</fieldset>
|
|
|
|
</template>
|