Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete button for branches in confusing #17535

Closed
gdstewart opened this issue Nov 3, 2021 · 2 comments · Fixed by #17537
Closed

Delete button for branches in confusing #17535

gdstewart opened this issue Nov 3, 2021 · 2 comments · Fixed by #17537
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented topic/ui Change the appearance of the Gitea UI type/bug
Milestone

Comments

@gdstewart
Copy link

Presently, the "Delete" button for branches is a trash bin icon:
image
This is unambiguous and provides satisfactory warning that what you're going to do is pretty severe.

However, on the page to confirm the deletion, the "No" button is ALSO a trash bin icon:
image

To me, this is confusing. I simply do not want to click on the "No" button even though I know it is innocuous because it uses the same icon. With the trash bin icon being used for "No" the logic seems to be that you are going to "trash" or delete your request to delete the branch.

I think an X icon might be preferred in this case, while the "Yes" button could be the trash bin icon. In any case this gave me pause and I wanted to see if anyone else had similar thoughts on this.

@delvh delvh added type/bug topic/ui Change the appearance of the Gitea UI issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented labels Nov 3, 2021
@delvh delvh added this to the 1.16.0 milestone Nov 3, 2021
@delvh
Copy link
Member

delvh commented Nov 3, 2021

Just confirmed it on try.gitea.io and a custom 1.15.6 server. That problem is present in both servers.
I agree that this is confusing, and a potential solution should be backported to both 1.14 and 1.15. (Although I don't know whether 1.14 has the same problem but I would guess so.)

@delvh
Copy link
Member

delvh commented Nov 3, 2021

Fixed it with the PR.
Using the trash icon on the yes button would potentially have been more complicated, so I opted for the simple solution.

@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented topic/ui Change the appearance of the Gitea UI type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants