Can delete repo from Site Admin page without typing the name #11501

Closed
opened 2025-11-02 09:39:31 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @lonix1 on GitHub (Aug 21, 2023).

Feature Description

To delete a repo:

  • click settings
  • scroll down to delete, click
  • popup asks to type name of repo, click

But in the "Site Administration" > "Repositories" page:

  • click repo's delete button
  • popup asks to click on yes/no (and the yes is active/bold/green, so it's easy to click it by mistake)

It doesn't ask to type the name. Forcing the user to type the name is a good safety feature.

Screenshots

No response

Originally created by @lonix1 on GitHub (Aug 21, 2023). ### Feature Description To delete a repo: - click settings - scroll down to delete, click - popup asks to type name of repo, click But in the "Site Administration" > "Repositories" page: - click repo's delete button - popup asks to click on yes/no (and the yes is active/bold/green, so it's easy to click it by mistake) It doesn't ask to type the name. Forcing the user to type the name is a good safety feature. ### Screenshots _No response_
GiteaMirror added the issue/needs-feedback label 2025-11-02 09:39:31 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Aug 21, 2023):

The list is for maintenance purpose, it won't be friendly to site admin if it keeps asking to re-type the repo name.

And even more, as a site admin, usually they could just ssh into the server and do rm -rf / without typing any repo name to destroy everything, so, to be a site admin, they should have been very careful already.

For the color problem, it could be changed to another color by modifying one line code if you like.

@wxiaoguang commented on GitHub (Aug 21, 2023): The list is for maintenance purpose, it won't be friendly to site admin if it keeps asking to re-type the repo name. And even more, as a site admin, usually they could just ssh into the server and do `rm -rf /` without typing any repo name to destroy everything, so, to be a site admin, they should have been very careful already. For the color problem, it could be changed to another color by modifying one line code if you like.
Author
Owner

@lonix1 commented on GitHub (Aug 21, 2023):

You make a good point. Thanks.

@lonix1 commented on GitHub (Aug 21, 2023): You make a good point. Thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11501