From 5a871932f0efc19a731ee5c1202679653d3cefff Mon Sep 17 00:00:00 2001 From: HesterG Date: Thu, 29 Jun 2023 16:17:18 +0800 Subject: [PATCH] Fix milestones deletion (#25583) Close #25557 Fix regression from #25315 `data-id` is still needed for deleting milestone. --- templates/repo/issue/milestones.tmpl | 2 +- templates/user/dashboard/milestones.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/issue/milestones.tmpl b/templates/repo/issue/milestones.tmpl index 6655c7002..5ca03c938 100644 --- a/templates/repo/issue/milestones.tmpl +++ b/templates/repo/issue/milestones.tmpl @@ -114,7 +114,7 @@ {{else}} {{svg "octicon-x" 14}}{{$.locale.Tr "repo.milestones.close"}} {{end}} - {{svg "octicon-trash" 14}}{{$.locale.Tr "repo.issues.label_delete"}} + {{svg "octicon-trash" 14}}{{$.locale.Tr "repo.issues.label_delete"}} {{end}} diff --git a/templates/user/dashboard/milestones.tmpl b/templates/user/dashboard/milestones.tmpl index 43d145ac5..5e459c045 100644 --- a/templates/user/dashboard/milestones.tmpl +++ b/templates/user/dashboard/milestones.tmpl @@ -135,7 +135,7 @@ {{else}} {{svg "octicon-x" 14}}{{$.locale.Tr "repo.milestones.close"}} {{end}} - {{svg "octicon-trash" 14}}{{$.locale.Tr "repo.issues.label_delete"}} + {{svg "octicon-trash" 14}}{{$.locale.Tr "repo.issues.label_delete"}} {{end}}