From b42ca2ed0c3482529728712e19434a5ad902037b Mon Sep 17 00:00:00 2001 From: Sai Nane Date: Wed, 4 Sep 2024 03:07:15 +0000 Subject: [PATCH] Revert repo-legacy.js to pre-#4542 The New Issue form should not use the new HTMX system. This first requires we restore the ability to locally assign the milestone ID. --- web_src/js/features/repo-legacy.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js index d9aa881127..b25fc28dea 100644 --- a/web_src/js/features/repo-legacy.js +++ b/web_src/js/features/repo-legacy.js @@ -270,7 +270,9 @@ export function initRepoCommentForm() { } let icon = ''; - if (input_id === '#project_id') { + if (input_id === '#milestone_id') { + icon = svg('octicon-milestone', 18, 'tw-mr-2'); + } else if (input_id === '#project_id') { icon = svg('octicon-project', 18, 'tw-mr-2'); } else if (input_id === '#assignee_id') { icon = `avatar`; @@ -311,6 +313,7 @@ export function initRepoCommentForm() { // Milestone, Assignee, Project selectItem('.select-project', '#project_id'); + selectItem('.select-milestone', '#milestone_id'); selectItem('.select-assignee', '#assignee_id'); }