Disable "Create" Button until all required fields are filled in. + Do more checks on the front-end. #21134
Labels
topic/ui
Change the appearance of the Gitea UI
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Feature Description
I'm always a little frustrated when I'm filling in a form and clicking submit, just to wait for an error response from the server.
The solution for this problem is pretty straightforward though: Front-end checks. Required fields aren't filled in yet? Disable the submit button. Fields aren't filled in properly? Prevent submitting the form and show an error message instantly. This would save people two seconds of waiting everytime they make a mistake (or even more depending on the internet speed) - which is a surprisingly long time when youre "just quickly creating a repository"
Screenshots
Disable the Create Repo button when some fields aren't filled in correctly, mockup:

The text was updated successfully, but these errors were encountered: