debian-mirror-gitlab/app/assets/javascripts/issue_show/components/fields/title.vue

32 lines
641 B
Vue
Raw Normal View History

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>
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"
2018-12-05 23:21:45 +05:30
class="form-control qa-title-input"
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"
/>
2017-09-10 17:25:29 +05:30
</fieldset>
</template>