diff options
author | HesterG <hestergong@gmail.com> | 2023-06-29 16:17:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 10:17:18 +0200 |
commit | 5a871932f0efc19a731ee5c1202679653d3cefff (patch) | |
tree | 23d8cd872118929ba09ce7521cfae5673a6f1eda /templates/repo/issue | |
parent | c76b221ccab873783d5e6c0ccd771f3e4a312e76 (diff) | |
download | gitea-5a871932f0efc19a731ee5c1202679653d3cefff.tar.gz gitea-5a871932f0efc19a731ee5c1202679653d3cefff.zip |
Fix milestones deletion (#25583)
Close #25557
Fix regression from #25315
`data-id` is still needed for deleting milestone.
Diffstat (limited to 'templates/repo/issue')
-rw-r--r-- | templates/repo/issue/milestones.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/milestones.tmpl b/templates/repo/issue/milestones.tmpl index 6655c70029..5ca03c938d 100644 --- a/templates/repo/issue/milestones.tmpl +++ b/templates/repo/issue/milestones.tmpl @@ -114,7 +114,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> |