From 7d723dd39a438185461f6a7ce916cf2745d4c3dc Mon Sep 17 00:00:00 2001 From: Leonardo Mendoza Fernadez Date: Thu, 18 Jan 2024 17:46:34 -0600 Subject: [PATCH] batch-fixes-jan-18-2024 --- .../components/form-personal/form-personal.component.html | 6 ++++++ .../components/form-personal/form-personal.component.ts | 8 +++++++- .../form-current-employment.component.html | 3 ++- .../form-current-employment.component.ts | 2 +- .../components/form-personal/form-personal.component.html | 6 ++++++ .../components/form-personal/form-personal.component.ts | 3 ++- src/app/shared/validators/date/date.validator.ts | 4 +++- 7 files changed, 27 insertions(+), 5 deletions(-) diff --git a/src/app/register/components/form-personal/form-personal.component.html b/src/app/register/components/form-personal/form-personal.component.html index 4b447f9fdd..834e6277b4 100644 --- a/src/app/register/components/form-personal/form-personal.component.html +++ b/src/app/register/components/form-personal/form-personal.component.html @@ -8,6 +8,12 @@ matInput #firstInput /> + + Must be less than 100 characters + *ngIf="selectedOrganizationFromDatabase && displayOrganizationHint" > {{ selectedOrganizationFromDatabase.value }}, - {{ selectedOrganizationFromDatabase.city }}, {{ selectedOrganizationFromDatabase.country }} diff --git a/src/app/register2/components/form-current-employment/form-current-employment.component.ts b/src/app/register2/components/form-current-employment/form-current-employment.component.ts index 6360488ae1..90e6c5b6f4 100644 --- a/src/app/register2/components/form-current-employment/form-current-employment.component.ts +++ b/src/app/register2/components/form-current-employment/form-current-employment.component.ts @@ -141,7 +141,7 @@ export class FormCurrentEmploymentComponent extends BaseForm implements OnInit { startDateMonth: [''], startDateYear: [''], }, - dateMonthYearValidator('startDate') + { validator: dateMonthYearValidator('startDate') } ), }) diff --git a/src/app/register2/components/form-personal/form-personal.component.html b/src/app/register2/components/form-personal/form-personal.component.html index 8244de7b5f..bc6ecc6600 100644 --- a/src/app/register2/components/form-personal/form-personal.component.html +++ b/src/app/register2/components/form-personal/form-personal.component.html @@ -23,6 +23,12 @@

/> + + Must be less than 100 characters + { const year = c.get(dateType + 'Year').value const month = c.get(dateType + 'Month').value + console.log(year, month) + if (!year && !month) { return null }