mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
bug creating action with begin date higher then end date solved
This commit is contained in:
@@ -73,7 +73,7 @@ export class NewActionPage implements OnInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get dateValid() {
|
/* get dateValid() {
|
||||||
var validado: boolean;
|
var validado: boolean;
|
||||||
|
|
||||||
if (window.innerWidth <= 800) {
|
if (window.innerWidth <= 800) {
|
||||||
@@ -86,6 +86,10 @@ export class NewActionPage implements OnInit {
|
|||||||
} else {
|
} else {
|
||||||
return ['ok']
|
return ['ok']
|
||||||
}
|
}
|
||||||
|
} */
|
||||||
|
|
||||||
|
get dateValid() {
|
||||||
|
return new Date(this.folder.DateBegin).getTime() < new Date(this.folder.DateBegin).getTime() ? 'ok': null
|
||||||
}
|
}
|
||||||
|
|
||||||
runValidation() {
|
runValidation() {
|
||||||
@@ -117,11 +121,7 @@ export class NewActionPage implements OnInit {
|
|||||||
this.injectValidation()
|
this.injectValidation()
|
||||||
this.runValidation()
|
this.runValidation()
|
||||||
|
|
||||||
if(this.Form.invalid) {
|
if(this.Form.invalid) return false
|
||||||
return false
|
|
||||||
} else {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user