diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-03 00:12:50 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-03 00:12:50 +0300 |
commit | 3a72ac775065b61bbdb285a8f4f6f152ccb4db49 (patch) | |
tree | 3e03be3d792b6693a57f7ef3da8b228c694fb45a /app/assets | |
parent | 0cea0a8f44d2cef1d4d132c72a07f8995962115c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/work_items/components/work_item_detail.vue | 2 | ||||
-rw-r--r-- | app/assets/javascripts/work_items/components/work_item_title_with_edit.vue | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/app/assets/javascripts/work_items/components/work_item_detail.vue b/app/assets/javascripts/work_items/components/work_item_detail.vue index 485d85b8872..85b981d9370 100644 --- a/app/assets/javascripts/work_items/components/work_item_detail.vue +++ b/app/assets/javascripts/work_items/components/work_item_detail.vue @@ -449,6 +449,7 @@ export default { class="gl-mt-3 gl-sm-display-block!" :is-editing="editMode" :title="workItem.title" + @updateWorkItem="updateWorkItem" @updateDraft="updateDraft('title', $event)" /> <work-item-title @@ -518,6 +519,7 @@ export default { :is-editing="editMode" :class="titleClassComponent" :title="workItem.title" + @updateWorkItem="updateWorkItem" @updateDraft="updateDraft('title', $event)" /> <work-item-title diff --git a/app/assets/javascripts/work_items/components/work_item_title_with_edit.vue b/app/assets/javascripts/work_items/components/work_item_title_with_edit.vue index 02ed25f98e4..6af564a6a91 100644 --- a/app/assets/javascripts/work_items/components/work_item_title_with_edit.vue +++ b/app/assets/javascripts/work_items/components/work_item_title_with_edit.vue @@ -27,10 +27,12 @@ export default { <template> <gl-form-group v-if="isEditing" :label="$options.i18n.titleLabel" label-for="work-item-title"> <gl-form-input - id="work-item-title" class="gl-w-full" :value="title" - @change="$emit('updateDraft', $event)" + data-testid="work-item-title-with-edit" + @keydown.meta.enter="$emit('updateWorkItem')" + @keydown.ctrl.enter="$emit('updateWorkItem')" + @input="$emit('updateDraft', $event)" /> </gl-form-group> <h1 |