forked from forgejo/forgejo
Reply button is not removed when deleting a code review comment (#13774)
Co-authored-by: mrsdizzie <info@mrsdizzie.com>
This commit is contained in:
parent
4353cf96c0
commit
47e4d1a4e2
4 changed files with 43 additions and 97 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue