forgejo/templates/htmx/milestone_sidebar.tmpl
iamyaash 4eac7adcc9 fix(ui): Make 'Clear milestone' work with HTMX (#8266)
Disable the 'clear milestone' button in the issue sidebar when no milestone is set and update this state after a milestone is set or cleared.

Fixes #7949

Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8266
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: iamyaash <iamyaash@outlook.com>
Co-committed-by: iamyaash <iamyaash@outlook.com>
2025-08-11 20:10:10 +02:00

5 lines
236 B
Go HTML Template

{{template "repo/issue/milestone/clear_milestone" dict "." . "UseHTMX" true}}
<div id="insert-timeline" hx-swap-oob="beforebegin">
{{template "repo/issue/view_content/comments" .}}
</div>
{{template "repo/issue/milestone/selected" .}}