未验证 提交 5be711ab 编写于 作者: F Fatih Acet

Add confirmation modal before cancelling the comment form in diff line note form.

上级 e868d09d
......@@ -57,10 +57,16 @@ export default {
...mapActions('diffs', ['cancelCommentForm']),
...mapActions(['saveNote', 'refetchDiscussionById']),
handleCancelCommentForm() {
if (!window.confirm('Are you sure you want to cancel creating this comment?')) {
return;
}
this.cancelCommentForm({
lineCode: this.line.lineCode,
});
this.resetAutoSave();
this.$nextTick(() => {
this.resetAutoSave();
});
},
handleSaveNote(note) {
const selectedDiffFile = this.getDiffFileByHash(this.diffFileHash);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册