From 820e0faaab121ae60e3ac5eeca8f6ec6e4e8493f Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Thu, 8 Jul 2021 13:57:08 +0100 Subject: [PATCH] Improve validation --- src/app/modals/create-process/create-process.page.html | 2 +- src/app/modals/create-process/create-process.page.ts | 2 +- .../book-meeting-modal/book-meeting-modal.page.html | 2 +- .../book-meeting-modal/book-meeting-modal.page.ts | 6 +++--- .../edit-event-to-approve/edit-event-to-approve.page.ts | 2 +- src/app/shared/agenda/edit-event/edit-event.page.ts | 2 +- src/app/shared/agenda/new-event/new-event.page.ts | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app/modals/create-process/create-process.page.html b/src/app/modals/create-process/create-process.page.html index fa36fe6fb..d67a970cb 100644 --- a/src/app/modals/create-process/create-process.page.html +++ b/src/app/modals/create-process/create-process.page.html @@ -91,7 +91,7 @@
-
+
diff --git a/src/app/modals/create-process/create-process.page.ts b/src/app/modals/create-process/create-process.page.ts index 7bc81d03f..9995d0bf5 100644 --- a/src/app/modals/create-process/create-process.page.ts +++ b/src/app/modals/create-process/create-process.page.ts @@ -185,7 +185,7 @@ export class CreateProcessPage implements OnInit { Validators.required, ]), participantes: new FormControl(this.taskParticipants, [ - // Validators.required + Validators.required ]), selectedTypes: new FormControl(this.selectedTypes, [ Validators.required, diff --git a/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html b/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html index 535832bdb..60799f41d 100644 --- a/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html +++ b/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html @@ -206,7 +206,7 @@
-
+
diff --git a/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.ts b/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.ts index b8df83005..cfd5ebc8d 100644 --- a/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.ts +++ b/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.ts @@ -197,9 +197,9 @@ export class BookMeetingModalPage implements OnInit { Date: new FormControl(this.dateValid, [ Validators.required ]), - // participantes: new FormControl(this.taskParticipantsCc.concat(this.taskParticipants), [ - // Validators.required - // ]), + participantes: new FormControl(this.taskParticipants, [ + Validators.required + ]), }) } diff --git a/src/app/shared/agenda/edit-event-to-approve/edit-event-to-approve.page.ts b/src/app/shared/agenda/edit-event-to-approve/edit-event-to-approve.page.ts index 21daefe73..79417118f 100644 --- a/src/app/shared/agenda/edit-event-to-approve/edit-event-to-approve.page.ts +++ b/src/app/shared/agenda/edit-event-to-approve/edit-event-to-approve.page.ts @@ -220,7 +220,7 @@ export class EditEventToApprovePage implements OnInit { // Validators.required // ]), participantes: new FormControl(this.taskParticipants, [ - // Validators.required + Validators.required ]), }) diff --git a/src/app/shared/agenda/edit-event/edit-event.page.ts b/src/app/shared/agenda/edit-event/edit-event.page.ts index a357303c8..33f20a2f3 100644 --- a/src/app/shared/agenda/edit-event/edit-event.page.ts +++ b/src/app/shared/agenda/edit-event/edit-event.page.ts @@ -180,7 +180,7 @@ export class EditEventPage implements OnInit { Validators.required ]), participantes: new FormControl(this.taskParticipants, [ - // Validators.required + Validators.required ]), }) diff --git a/src/app/shared/agenda/new-event/new-event.page.ts b/src/app/shared/agenda/new-event/new-event.page.ts index 02229ce36..b25256782 100644 --- a/src/app/shared/agenda/new-event/new-event.page.ts +++ b/src/app/shared/agenda/new-event/new-event.page.ts @@ -250,7 +250,7 @@ export class NewEventPage implements OnInit { Validators.required ]), participantes: new FormControl(this.taskParticipants, [ - // Validators.required + Validators.required ]), })