summaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-06-29 04:52:05 -0400
committerGitHub <noreply@github.com>2023-06-29 08:52:05 +0000
commit51b6a787912a60b02d297b6d277e199b087f8605 (patch)
treebb3bf757ad6b2504703277c0f4eeda2fa92707f2 /templates/user
parente6f62eea7020c0c4ec60aab31a56b76870d4cd21 (diff)
downloadgitea-51b6a787912a60b02d297b6d277e199b087f8605.tar.gz
gitea-51b6a787912a60b02d297b6d277e199b087f8605.zip
Fix milestones deletion (#25583) (#25584)
Backport #25583 by @HesterG Close #25557 Fix regression from #25315 `data-id` is still needed for deleting milestone. Co-authored-by: HesterG <hestergong@gmail.com>
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/dashboard/milestones.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/dashboard/milestones.tmpl b/templates/user/dashboard/milestones.tmpl
index c68d0783b8..ab5f02ef74 100644
--- a/templates/user/dashboard/milestones.tmpl
+++ b/templates/user/dashboard/milestones.tmpl
@@ -135,7 +135,7 @@
{{else}}
<a class="link-action flex-text-inline" href data-url="{{$.Link}}/{{.ID}}/close">{{svg "octicon-x" 14}}{{$.locale.Tr "repo.milestones.close"}}</a>
{{end}}
- <a class="delete-button flex-text-inline" href="#" data-url="{{$.RepoLink}}/milestones/delete">{{svg "octicon-trash" 14}}{{$.locale.Tr "repo.issues.label_delete"}}</a>
+ <a class="delete-button flex-text-inline" href="#" data-url="{{$.RepoLink}}/milestones/delete" data-id="{{.ID}}">{{svg "octicon-trash" 14}}{{$.locale.Tr "repo.issues.label_delete"}}</a>
</div>
{{end}}
</div>