From 33752284f2143eede7e109dbe9b4be6a51c5043e Mon Sep 17 00:00:00 2001 From: Elwin Schmitz Date: Thu, 3 Dec 2020 11:13:38 +0100 Subject: [PATCH 1/2] AB#5008 Show phoneNumber in more program-phases for PM --- .../program-people-affected.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/interfaces/HO-Portal/src/app/program/program-people-affected/program-people-affected.component.ts b/interfaces/HO-Portal/src/app/program/program-people-affected/program-people-affected.component.ts index 7689896597..59397c552d 100644 --- a/interfaces/HO-Portal/src/app/program/program-people-affected/program-people-affected.component.ts +++ b/interfaces/HO-Portal/src/app/program/program-people-affected/program-people-affected.component.ts @@ -186,7 +186,12 @@ export class ProgramPeopleAffectedComponent implements OnInit { 'page.program.program-people-affected.column.phone-number', ), ...columnDefaults, - phases: [ProgramPhase.reviewInclusion, ProgramPhase.payment], + phases: [ + ProgramPhase.registrationValidation, + ProgramPhase.inclusion, + ProgramPhase.reviewInclusion, + ProgramPhase.payment, + ], roles: [UserRole.ProgramManager], minWidth: columnPhoneNumberWidth, }, From 56b8a1abc22beb7afc07b4bff3e0c51ee1a9de02 Mon Sep 17 00:00:00 2001 From: Elwin Schmitz Date: Thu, 3 Dec 2020 11:32:09 +0100 Subject: [PATCH 2/2] AB#5037 Add WhatsAppPhoneNumber-column for PM (when available) --- .../HO-Portal/src/app/models/person.model.ts | 2 ++ .../program-people-affected.component.html | 20 ++++++++--- .../program-people-affected.component.ts | 35 ++++++++++--------- interfaces/HO-Portal/src/assets/i18n/en.json | 1 + 4 files changed, 36 insertions(+), 22 deletions(-) diff --git a/interfaces/HO-Portal/src/app/models/person.model.ts b/interfaces/HO-Portal/src/app/models/person.model.ts index e6031661f5..0f65145b4a 100644 --- a/interfaces/HO-Portal/src/app/models/person.model.ts +++ b/interfaces/HO-Portal/src/app/models/person.model.ts @@ -16,6 +16,7 @@ export class Person { status: PaStatus; fsp?: string; vnumber?: string; + whatsappPhoneNumber?: string; } // Model for display (in table) @@ -38,6 +39,7 @@ export class PersonRow { phoneNumber?: string | null; fsp?: string | null; vnumber?: string | null; + whatsappPhoneNumber?: string | null; } export enum PaStatus { diff --git a/interfaces/HO-Portal/src/app/program/program-people-affected/program-people-affected.component.html b/interfaces/HO-Portal/src/app/program/program-people-affected/program-people-affected.component.html index de71d1f920..002c820734 100644 --- a/interfaces/HO-Portal/src/app/program/program-people-affected/program-people-affected.component.html +++ b/interfaces/HO-Portal/src/app/program/program-people-affected/program-people-affected.component.html @@ -104,16 +104,26 @@

{{ 'page.program.program-people-affected.section-title'|translate }}

[cellClass]="column.cellClass" > + - + [draggable]="columnDefaults.draggable" + [resizeable]="columnDefaults.resizeable" + [sortable]="columnDefaults.sortable" + [headerClass]="columnDefaults.headerClass" + >