Skip to content

"Create Pull Request" button is not disabled after first click #19410

Closed
@lehag92

Description

@lehag92

Description

I my project when a developer clicks several times "Create Pull Request" because of server load, 2 requests where sent to server, and 2 PRs created.
Same behaviour I can reproduce on try,giteahttps://try.gitea.io/
example:
Screenshot 2022-04-15 at 20 41 05

https://try.gitea.io/1234iiiii/test-PR/pulls

At least button can be disabled after first click. Or additional check on API that this PR already exists/

Gitea Version

1.16.5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

EC2 server hosted with packet through systemd

Database

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions