Add loading state guard to prevent duplicate form submissions in Appeal and DiscordAppeal components.
This commit is contained in:
parent
525116e89b
commit
a6fbd19b6d
|
|
@ -125,6 +125,7 @@ export class AppealComponent implements OnInit, OnDestroy {
|
||||||
if (this.formSubmitting) {
|
if (this.formSubmitting) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.formSubmitting = true;
|
||||||
const rawValue = this.form.getRawValue();
|
const rawValue = this.form.getRawValue();
|
||||||
const uuid = this.authService.getUuid();
|
const uuid = this.authService.getUuid();
|
||||||
if (uuid === null) {
|
if (uuid === null) {
|
||||||
|
|
|
||||||
|
|
@ -186,6 +186,7 @@ export class DiscordAppealComponent implements OnInit {
|
||||||
if (this.formSubmitting) {
|
if (this.formSubmitting) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.formSubmitting = true;
|
||||||
const rawValue = this.form.getRawValue();
|
const rawValue = this.form.getRawValue();
|
||||||
const uuid = this.authService.getUuid();
|
const uuid = this.authService.getUuid();
|
||||||
if (uuid === null) {
|
if (uuid === null) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user