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"
|
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
|
|
|
v-model="formState.title"
|
|
|
|
@keydown.meta.enter="updateIssuable"
|
|
|
|
@keydown.ctrl.enter="updateIssuable" />
|
|
|
|
</fieldset>
|
|
|
|
</template>
|