Disabled button after button push.

I disabled the submit button after you push it.
So you can't spam click the button and create 30 servers and you can only create one a time.
If you have more question dm me on discord ItsJustNickDev#9943
This commit is contained in:
NickDevNL 2021-09-20 17:20:29 +02:00 committed by GitHub
parent 2862109d60
commit f355caec72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,7 +125,7 @@
@enderror
</div>
<div class="form-group text-right">
<button type="submit" class="btn btn-primary mt-3">Submit</button>
<input type="submit" class="btn btn-primary mt-3" value="Submit" onclick="this.disabled=true;this.value='Creating, please wait...';this.form.submit();"
</div>
</form>