Display branch name in "branch delete" modal #2706

Closed
opened 2025-11-02 04:45:08 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @MarcMogdanz on GitHub (Jan 4, 2019).

If you go to the list of branches of a repository and want to delete one, a modal will popup and ask you to confirm you want to delete this branch. In the template file is already a <span class="branch-name"></span> but without any content.

I think it would be useful to display the name of the branch in the modal so you are 100% sure you clicked on the right branch before you delete it.

It is currently being handled like this if you delete a branch after a pull request was merged.

Originally created by @MarcMogdanz on GitHub (Jan 4, 2019). If you go to the list of branches of a repository and want to delete one, a modal will popup and ask you to confirm you want to delete this branch. In the [template file](https://github.com/go-gitea/gitea/blob/master/templates/repo/branch/list.tmpl) is already a `<span class="branch-name"></span>` but without any content. I think it would be useful to display the name of the branch in the modal so you are 100% sure you clicked on the right branch before you delete it. It is currently being handled like this if you delete a branch after a pull request was merged.
GiteaMirror added the topic/ui label 2025-11-02 04:45:08 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2706