This commit is contained in:
Peter Maquiran
2022-12-17 16:19:23 +01:00
parent 82ff899199
commit 8aea090a37
6 changed files with 24 additions and 16 deletions
@@ -63,8 +63,15 @@ export class NewActionPage implements OnInit {
}
get dateValid() {
if (window.innerWidth > 700) {
return new Date(this.folder.DateBegin).toLocaleString('pt') < new Date(this.folder.DateEnd).toLocaleString("pt")? ['ok'] : []
var validado: boolean;
if (window.innerWidth <= 800) {
if ((this.folder.DateBegin < this.folder.DateEnd) && (new Date(this.folder.DateBegin).getTime() > this.currentDate.getTime())) {
validado = true;
}else{
validado = false;
}
return validado == true ? ['ok']: [];
} else {
return ['ok']
}