Improve form validation

This commit is contained in:
Peter Maquiran
2021-07-07 16:25:36 +01:00
parent 34eed1dc26
commit 49d09e3593
8 changed files with 72 additions and 7 deletions
@@ -70,7 +70,7 @@ export class NewActionPage implements OnInit {
}
get dateValid() {
if (window.innerWidth <= 800) {
if (window.innerWidth >= 800) {
return this.folder.DateBegin < this.folder.DateEnd? ['ok']: []
} else {
return ['ok']