Reply button is not removed when deleting a code review comment (#13824)

Backport #13774
This commit is contained in:
Jimmy Praet authored and GitHub committed 2020-12-03 20:26:47 +00:00
1 parent 0d43a2a069
commit 10fff12da4
3 files changed
+100 -90

No files matched your search

+4
View File
@@ -1055,7 +1055,11 @@ async function initRepository() {
$.post($this.data('url'), {
_csrf: csrf
}).done(() => {
const $conversationHolder = $this.closest('.conversation-holder');
$(`#${$this.data('comment-id')}`).remove();
if ($conversationHolder.length && !$conversationHolder.find('.comment').length) {
$conversationHolder.remove();
}
});
}
return false;