This commit is contained in:
Peter Maquiran
2022-04-22 16:42:37 +01:00
parent b613c19415
commit 9823e58938
4 changed files with 9 additions and 14 deletions
@@ -106,9 +106,6 @@ export class NewActionPage implements OnInit {
if(new Date(this.folder.DateBegin).toISOString() > new Date(this.folder.DateEnd).toISOString()){
this.toastService.badRequest("A data de início não pode ser superior a data de fim");
}
else if(this.folder.DateBegin > new Date().toISOString()){
this.toastService.badRequest("A data de início não pode ser superior a data actual");
}
}
injectValidation() {