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

Wrong action method for mirror form #24534

Closed
stevefan1999-personal opened this issue May 5, 2023 · 3 comments · Fixed by #24535
Closed

Wrong action method for mirror form #24534

stevefan1999-personal opened this issue May 5, 2023 · 3 comments · Fixed by #24535
Labels
topic/ui Change the appearance of the Gitea UI type/bug

Comments

@stevefan1999-personal
Copy link

Description

There is no such method called "post gt-dib". This effectively defaulted to a GET request. Please fix this.

Screenshots

<form method="post gt-dib">
{{.CsrfTokenHtml}}
<input type="hidden" name="action" value="mirror-sync">
<button class="ui primary tiny button inline text-thin">{{$.locale.Tr "repo.settings.sync_mirror"}}</button>
</form>

<form method="post gt-dib">
{{$.CsrfTokenHtml}}
<input type="hidden" name="action" value="push-mirror-remove">
<input type="hidden" name="push_mirror_id" value="{{.ID}}">
<button class="ui basic red tiny button inline text-thin">{{$.locale.Tr "remove"}}</button>
</form>
<form method="post gt-dib">
{{$.CsrfTokenHtml}}
<input type="hidden" name="action" value="push-mirror-sync">
<input type="hidden" name="push_mirror_id" value="{{.ID}}">
<button class="ui primary tiny button inline text-thin">{{$.locale.Tr "repo.settings.sync_mirror"}}</button>
</form>

Gitea Version

nightly

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

No response

Browser Version

Edge

@stevefan1999-personal stevefan1999-personal added type/bug topic/ui Change the appearance of the Gitea UI labels May 5, 2023
@wxiaoguang
Copy link
Contributor

Regression: Make Issue/PR/projects more compact, misc CSS tweaks (#24459)

@stevefan1999-personal
Copy link
Author

@silverwind blame shows you are also in it too

@wxiaoguang
Copy link
Contributor

wxiaoguang commented May 5, 2023

No worry, I am writing a fix for it -> #24535

techknowlogick pushed a commit that referenced this issue May 5, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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