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

Fixed validation name of access token when creating #33614

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

BElluu
Copy link
Contributor

@BElluu BElluu commented Feb 16, 2025

Fixes #33519
Token name validation was skipped despite the required attribute because it was "taken over" by component vue. Component vue has been extended.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Feb 16, 2025
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 16, 2025
@wxiaoguang
Copy link
Contributor

wxiaoguang commented Feb 18, 2025

TBH, this Vue component is an anti-pattern (well, yes, from the beginning .....)

So if there is a chance, I would suggest to refactor the form to make it work like a modern one.

@BElluu
Copy link
Contributor Author

BElluu commented Feb 18, 2025

@wxiaoguang I'm new to this project. Could you give an example template that is modern :D?

@wxiaoguang
Copy link
Contributor

Maybe either completely remove the Vue component (TBH I do not see why it really helps in this case, since it doesn't do MVVM/React data binding), or completely use the Vue component for the form, but not let a component depends on its parent (out of scope) elements.

Personally I prefer the first solution (completely remove the Vue component) if it is feasible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/frontend modifies/templates This PR modifies the template files modifies/translation size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UX,Usability: Creating Personal Access Tokens, provide access form values on error
3 participants