3a62be8409
This moves all EE Specific lines into the ee directory CE Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/11151/commits?view=parallel
24 lines
605 B
JavaScript
24 lines
605 B
JavaScript
export default {
|
|
data() {
|
|
return {
|
|
showBatchCommentsActions: false,
|
|
};
|
|
},
|
|
methods: {
|
|
handleKeySubmit() {
|
|
this.handleUpdate();
|
|
},
|
|
handleUpdate(shouldResolve) {
|
|
const beforeSubmitDiscussionState = this.discussionResolved;
|
|
this.isSubmitting = true;
|
|
|
|
this.$emit('handleFormUpdate', this.updatedNoteBody, this.$refs.editNoteForm, () => {
|
|
this.isSubmitting = false;
|
|
|
|
if (this.shouldToggleResolved(shouldResolve, beforeSubmitDiscussionState)) {
|
|
this.resolveHandler(beforeSubmitDiscussionState);
|
|
}
|
|
});
|
|
},
|
|
},
|
|
};
|