mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Fix suggestions for issues (#32380)
This commit is contained in:
		| @@ -10,12 +10,10 @@ export function initContextPopups() { | ||||
|  | ||||
| export function attachRefIssueContextPopup(refIssues) { | ||||
|   for (const refIssue of refIssues) { | ||||
|     if (refIssue.classList.contains('ref-external-issue')) { | ||||
|       return; | ||||
|     } | ||||
|     if (refIssue.classList.contains('ref-external-issue')) continue; | ||||
|  | ||||
|     const {owner, repo, index} = parseIssueHref(refIssue.getAttribute('href')); | ||||
|     if (!owner) return; | ||||
|     const issuePathInfo = parseIssueHref(refIssue.getAttribute('href')); | ||||
|     if (!issuePathInfo.ownerName) continue; | ||||
|  | ||||
|     const el = document.createElement('div'); | ||||
|     el.classList.add('tw-p-3'); | ||||
| @@ -38,7 +36,7 @@ export function attachRefIssueContextPopup(refIssues) { | ||||
|       role: 'dialog', | ||||
|       interactiveBorder: 5, | ||||
|       onShow: () => { | ||||
|         el.firstChild.dispatchEvent(new CustomEvent('ce-load-context-popup', {detail: {owner, repo, index}})); | ||||
|         el.firstChild.dispatchEvent(new CustomEvent('ce-load-context-popup', {detail: issuePathInfo})); | ||||
|       }, | ||||
|     }); | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 wxiaoguang
					wxiaoguang