1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-06 02:27:20 +00:00

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

Backport #13774
This commit is contained in:
Jimmy Praet
2020-12-03 21:26:47 +01:00
committed by GitHub
parent 0d43a2a069
commit 10fff12da4
3 changed files with 100 additions and 90 deletions

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;