zhangxinyao88 commented on code in PR #829:
URL:
https://github.com/apache/fineract-backoffice-ui/pull/829#discussion_r4419321536
##########
src/app/features/clients/kyc/client-family-member-form.component.ts:
##########
@@ -247,18 +249,38 @@ import { createPickersReady } from
'../../../shared/utils/pickers-ready';
'CLIENTS.DATE_OF_BIRTH' | appTranslate
}}</ion-label>
@if (pickersReady()) {
- <ion-datetime-button
datetime="family-dob-picker"></ion-datetime-button>
+ <ion-datetime-button datetime="family-dob-picker">
+ @if (!isEditMode && !createDateOfBirth()) {
+ <span slot="date-target">{{
+ 'CLIENTS.DATE_OF_BIRTH_NOT_SET' | appTranslate
+ }}</span>
+ }
+ </ion-datetime-button>
}
<ion-modal [keepContentsMounted]="true">
<ng-template>
<ion-datetime
id="family-dob-picker"
data-testid="family-dob-picker"
presentation="date"
+ [value]="isEditMode ? undefined :
createDateOfBirth()"
Review Comment:
Merged in [#841](https://github.com/apache/fineract-backoffice-ui/pull/841)
with CI passing. Saved DOBs now populate the edit picker and missing DOBs show
"Not set"; clearing a saved DOB remains outside this change.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]