Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/registrar/search/search.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
id="searchbox"
pattern="[a-zA-Z0-9]*"
maxlength="32"
placeholder="{{ isEnableES ? currentLanguageSet?.ro?.benIDOrPhNo : currentLanguageSet?.ro?.benIDOrPhNo }}"
placeholder="{{ isEnableES ? currentLanguageSet?.ro?.benDetails : currentLanguageSet?.ro?.benIDOrPhNo }}"
class="pull-left search_textbox"
[(ngModel)]="quicksearchTerm"
(ngModelChange)="onSearchInputChange($event)"
Expand Down Expand Up @@ -110,7 +110,7 @@ <h4 class="modal-title">
<input
autocomplete="off"
matInput
placeholder="{{ currentLanguageSet?.common?.inTableSearch }}"
placeholder="{{currentLanguageSet?.common?.inTableSearch}}"
#filterTerm
(keyup)="filterBeneficiaryList(filterTerm.value)"
/>
Expand Down Expand Up @@ -163,7 +163,7 @@ <h4 class="modal-title">
*matCellDef="let beneficiary"
(click)="patientRevisited(beneficiary.benObject)"
>
{{ isEnableES ? beneficiary?.beneficiaryRegID : beneficiary?.beneficiaryID }}
{{ beneficiary?.beneficiaryID }}
</td>
</ng-container>

Expand Down
6 changes: 3 additions & 3 deletions src/registrar/search/search.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export class SearchComponent implements OnInit, DoCheck, AfterViewChecked, OnDes
benObject &&
benObject.m_gender &&
benObject.m_gender.genderName &&
benObject.dOB
benObject.dob
) {
const action = false;
console.log(JSON.stringify(benObject, null, 4), 'benObject');
Expand All @@ -455,7 +455,7 @@ export class SearchComponent implements OnInit, DoCheck, AfterViewChecked, OnDes
.subscribe((result) => {
if (result) this.sendToNurseWindow(result, benObject);
});
} else if (!benObject.m_gender.genderName && !benObject.dOB) {
} else if (!benObject.m_gender.genderName && !benObject.dob) {
this.confirmationService.alert(
this.currentLanguageSet.alerts.info.genderAndAgeDetails,
'info',
Expand All @@ -465,7 +465,7 @@ export class SearchComponent implements OnInit, DoCheck, AfterViewChecked, OnDes
this.currentLanguageSet.alerts.info.noGenderDetails,
'info',
);
} else if (!benObject.dOB) {
} else if (!benObject.dob) {
this.confirmationService.alert(
this.currentLanguageSet.alerts.info.noAgeDetailsAvail,
'info',
Expand Down