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

33 lines
605 B
Vue
Raw Normal View History

2017-09-10 17:25:29 +05:30
<script>
import updateMixin from '../../mixins/update';
export default {
mixins: [updateMixin],
props: {
formState: {
type: Object,
required: true,
},
},
};
</script>
<template>
<fieldset>
<label
class="sr-only"
2018-03-17 18:26:18 +05:30
for="issuable-title">
2017-09-10 17:25:29 +05:30
Title
</label>
<input
2018-03-17 18:26:18 +05:30
id="issuable-title"
2018-11-08 19:23:39 +05:30
v-model="formState.title"
2017-09-10 17:25:29 +05:30
class="form-control"
type="text"
2018-03-17 18:26:18 +05:30
placeholder="Title"
aria-label="Title"
2017-09-10 17:25:29 +05:30
@keydown.meta.enter="updateIssuable"
@keydown.ctrl.enter="updateIssuable" />
</fieldset>
</template>