From 18aeca53203adba7b4fb3b7311f0e77bef92e266 Mon Sep 17 00:00:00 2001 From: Calvin K <70356237+CalK16@users.noreply.github.com> Date: Sat, 9 Nov 2024 12:48:31 +0800 Subject: Add reviewers selection to new pull request (#32403) Users could add reviewers when creating new PRs. --------- Co-authored-by: splitt3r Co-authored-by: Sebastian Sauer Co-authored-by: bb-ben <70356237+bboerben@users.noreply.github.com> Co-authored-by: wxiaoguang --- web_src/js/features/repo-issue.ts | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'web_src/js/features/repo-issue.ts') diff --git a/web_src/js/features/repo-issue.ts b/web_src/js/features/repo-issue.ts index 721a746aa2..92916ec8d7 100644 --- a/web_src/js/features/repo-issue.ts +++ b/web_src/js/features/repo-issue.ts @@ -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; -- cgit v1.2.3