fix create action mobile

This commit is contained in:
Peter Maquiran
2023-01-19 12:05:14 +01:00
parent d8e8066eae
commit 39f1884aac
2 changed files with 9 additions and 9 deletions
@@ -98,9 +98,9 @@ export class NewActionPage implements OnInit {
var validado: boolean; var validado: boolean;
if (window.innerWidth <= 800) { if (window.innerWidth <= 800) {
if ((this.folder.DateBegin < this.folder.DateEnd) && (new Date(this.folder.DateBegin).getTime() > this.currentDate.getTime())) { if ((this.folder.DateBegin < this.folder.DateEnd)) {
validado = true; validado = true;
}else{ } else {
validado = false; validado = false;
} }
return validado == true ? ['ok']: []; return validado == true ? ['ok']: [];
@@ -111,7 +111,7 @@ export class NewActionPage implements OnInit {
runValidation() { runValidation() {
this.validateFrom = true; this.validateFrom = true;
if(new Date(this.folder.DateBegin).toISOString() > new Date(this.folder.DateEnd).toISOString()){ if(new Date(this.folder.DateBegin).getTime() > new Date(this.folder.DateEnd).getTime()){
this.toastService._badRequest("A data de início não pode ser superior a data de fim"); this.toastService._badRequest("A data de início não pode ser superior a data de fim");
} }
} }
+6 -6
View File
@@ -1,12 +1,12 @@
export let versionData = { export let versionData = {
"shortSHA": "4e8a31b6b", "shortSHA": "d8e8066ea",
"SHA": "4e8a31b6b9e66f24197bc66335796300f396f6cb", "SHA": "d8e8066eaef190243233370651928d9571bcb07d",
"branch": "no_bug_movemente", "branch": "no_bug_movemente",
"lastCommitAuthor": "'Peter Maquiran'", "lastCommitAuthor": "'Peter Maquiran'",
"lastCommitTime": "'Thu Jan 19 11:30:12 2023 +0100'", "lastCommitTime": "'Thu Jan 19 11:48:43 2023 +0100'",
"lastCommitMessage": "ordenation", "lastCommitMessage": "event permission on chat",
"lastCommitNumber": "4659", "lastCommitNumber": "4660",
"change": "", "change": "",
"changeStatus": "On branch no_bug_movemente\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/services/chat/chat-system.service.ts\n\tmodified: src/app/shared/chat/group-messages/group-messages.page.html\n\tmodified: src/app/shared/chat/group-messages/group-messages.page.ts\n\tmodified: src/app/shared/chat/messages/messages.page.html\n\tmodified: src/app/shared/chat/messages/messages.page.ts\n\tmodified: src/app/shared/popover/chat-options-popover/chat-options-popover.page.html\n\tmodified: src/app/shared/popover/chat-options-popover/chat-options-popover.page.ts\n\tmodified: src/app/store/localstore.service.ts", "changeStatus": "On branch no_bug_movemente\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/pages/publications/new-action/new-action.page.ts",
"changeAuthor": "peter.maquiran" "changeAuthor": "peter.maquiran"
} }