mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 19:06:18 +01:00 
			
		
		
		
	Add reviewers selection to new pull request (#32403)
Users could add reviewers when creating new PRs. --------- Co-authored-by: splitt3r <splitt3r@users.noreply.github.com> Co-authored-by: Sebastian Sauer <sauer.sebastian@gmail.com> Co-authored-by: bb-ben <70356237+bboerben@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -8,7 +8,6 @@ import {parseIssuePageInfo, toAbsoluteUrl} from '../utils.ts'; | ||||
| import {GET, POST} from '../modules/fetch.ts'; | ||||
| import {showErrorToast} from '../modules/toast.ts'; | ||||
| import {initRepoIssueSidebar} from './repo-issue-sidebar.ts'; | ||||
| import {updateIssuesMeta} from './repo-common.ts'; | ||||
|  | ||||
| const {appSubUrl} = window.config; | ||||
|  | ||||
| @@ -326,17 +325,6 @@ export function initRepoIssueWipTitle() { | ||||
| export function initRepoIssueComments() { | ||||
|   if (!$('.repository.view.issue .timeline').length) return; | ||||
|  | ||||
|   $('.re-request-review').on('click', async function (e) { | ||||
|     e.preventDefault(); | ||||
|     const url = this.getAttribute('data-update-url'); | ||||
|     const issueId = this.getAttribute('data-issue-id'); | ||||
|     const id = this.getAttribute('data-id'); | ||||
|     const isChecked = this.classList.contains('checked'); | ||||
|  | ||||
|     await updateIssuesMeta(url, isChecked ? 'detach' : 'attach', issueId, id); | ||||
|     window.location.reload(); | ||||
|   }); | ||||
|  | ||||
|   document.addEventListener('click', (e) => { | ||||
|     const urlTarget = document.querySelector(':target'); | ||||
|     if (!urlTarget) return; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user