mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 19:06:18 +01:00 
			
		
		
		
	Fix PR comments UI (#18323)
Closes: * Review comment cannot be edited #17768 * Changing PR Comment Resolved State Disables Further Changes #18315
This commit is contained in:
		| @@ -45,7 +45,7 @@ export function initRepoDiffConversationForm() { | ||||
|   }); | ||||
|  | ||||
|  | ||||
|   $('.resolve-conversation').on('click', async function (e) { | ||||
|   $(document).on('click', '.resolve-conversation', async function (e) { | ||||
|     e.preventDefault(); | ||||
|     const comment_id = $(this).data('comment-id'); | ||||
|     const origin = $(this).data('origin'); | ||||
|   | ||||
| @@ -109,7 +109,7 @@ export function initRepoIssueContentHistory() { | ||||
|   if (!issueIndex) return; | ||||
|  | ||||
|   const $itemIssue = $('.repository.issue .timeline-item.comment.first'); // issue(PR) main content | ||||
|   const $comments = $('.repository.issue .comment-list .comment'); // includes: issue(PR) comments, code rerview comments | ||||
|   const $comments = $('.repository.issue .comment-list .comment'); // includes: issue(PR) comments, review comments, code comments | ||||
|   if (!$itemIssue.length && !$comments.length) return; | ||||
|  | ||||
|   const repoLink = $('#repolink').val(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user