@@ -37,6 +37,7 @@ class FamilySearcher extends Component {
3737 "familyFilter.rowsPerPageOptions" ,
3838 [ 10 , 20 , 50 , 100 ] ,
3939 ) ;
40+ this . columns = props . modulesManager . getConf ( "fe-insuree" , "searcherColumnsConfig" , { } ) ;
4041 this . defaultPageSize = props . modulesManager . getConf ( "fe-insuree" , "familyFilter.defaultPageSize" , 10 ) ;
4142 this . locationLevels = this . props . modulesManager . getConf ( "fe-location" , "location.Location.MaxLevels" , 4 ) ;
4243 this . renderLastNameFirst = props . modulesManager . getConf (
@@ -116,16 +117,16 @@ class FamilySearcher extends Component {
116117 "insuree.familySummaries.insuranceNo" ,
117118 this . renderLastNameFirst ? "insuree.familySummaries.lastName" : "insuree.familySummaries.otherNames" ,
118119 ! this . renderLastNameFirst ? "insuree.familySummaries.lastName" : "insuree.familySummaries.otherNames" ,
119- " insuree.familySummaries.email",
120+ this . columns . email !== "H" ? " insuree.familySummaries.email" : null ,
120121 "insuree.familySummaries.phone" ,
121122 "insuree.familySummaries.dob" ,
122123 ] ;
123124 for ( var i = 0 ; i < this . locationLevels ; i ++ ) {
124125 h . push ( `location.locationType.${ i } ` ) ;
125126 }
126127 h . push (
127- " insuree.familySummaries.poverty",
128- " insuree.familySummaries.confirmationNo",
128+ this . columns . poverty !== "H" ? " insuree.familySummaries.poverty" : null ,
129+ this . columns . confirmationNo !== "H" ? " insuree.familySummaries.confirmationNo" : null ,
129130 filters ?. showHistory ?. value ? "insuree.familySummaries.validityFrom" : null ,
130131 filters ?. showHistory ?. value ? "insuree.familySummaries.validityTo" : null ,
131132 "insuree.familySummaries.openNewTab" ,
@@ -194,7 +195,7 @@ class FamilySearcher extends Component {
194195 ( family . headInsuree && ! this . renderLastNameFirst
195196 ? family . headInsuree . lastName
196197 : family . headInsuree . otherNames ) || "" ,
197- ( family ) => ( ! ! family . headInsuree ? family . headInsuree . email : "" ) ,
198+ this . columns . email !== "H" ? ( family ) => ( ! ! family . headInsuree ? family . headInsuree . email : "" ) : null ,
198199 ( family ) => ( ! ! family . headInsuree ? family . headInsuree . phone : "" ) ,
199200 ( family ) =>
200201 ! ! family . headInsuree
@@ -207,8 +208,8 @@ class FamilySearcher extends Component {
207208 formatters . push ( ( family ) => this . parentLocation ( family . location , j ) ) ;
208209 }
209210 formatters . push (
210- ( family ) => < Checkbox color = "primary" checked = { family . poverty } readOnly /> ,
211- ( family ) => family . confirmationNo ,
211+ this . columns . poverty !== "H" ? ( family ) => < Checkbox color = "primary" checked = { family . poverty } readOnly /> : null ,
212+ this . columns . confirmationNo !== "H" ? ( family ) => family . confirmationNo : null ,
212213 filters ?. showHistory ?. value
213214 ? ( family ) => formatDateFromISO ( this . props . modulesManager , this . props . intl , family . validityFrom )
214215 : null ,
0 commit comments