Added checks for non-dirty forms when saving/adding.

This commit is contained in:
Tom
2025-04-02 16:35:41 +00:00
parent 1e6690ff4b
commit fcf1e9ac03
10 changed files with 10 additions and 10 deletions

View File

@ -50,7 +50,7 @@ export class GroupItemEditComponent implements OnInit {
}
add() {
if (this.formGroup.invalid || this.waitForResponse)
if (!this.formGroup.dirty || this.formGroup.invalid || this.waitForResponse)
return;
this.waitForResponse = true;