Added checks for non-dirty forms when saving/adding.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user