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

Co-authored-by: mrsdizzie <info@mrsdizzie.com>
This commit is contained in:
Jimmy Praetandmrsdizzie authored and GitHub committed 2020-12-03 17:05:27 +02:00
1 parent 4353cf96c0
commit 47e4d1a4e2
4 files changed
+43 -97

No files matched your search

+4
View File
@@ -1094,7 +1094,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;