bug creating action with begin date higher then end date solved

This commit is contained in:
Eudes Inácio
2024-02-15 11:25:19 +01:00
parent e6f70cb7e6
commit cdc55aa00c
@@ -73,7 +73,7 @@ export class NewActionPage implements OnInit {
}
get dateValid() {
/* get dateValid() {
var validado: boolean;
if (window.innerWidth <= 800) {
@@ -86,6 +86,10 @@ export class NewActionPage implements OnInit {
} else {
return ['ok']
}
} */
get dateValid() {
return new Date(this.folder.DateBegin).getTime() < new Date(this.folder.DateBegin).getTime() ? 'ok': null
}
runValidation() {
@@ -117,11 +121,7 @@ export class NewActionPage implements OnInit {
this.injectValidation()
this.runValidation()
if(this.Form.invalid) {
return false
} else {
}
if(this.Form.invalid) return false