Skip to content

Commit

Permalink
Hide previous vl & previous vl date column in appointments
Browse files Browse the repository at this point in the history
  • Loading branch information
sainingo committed Aug 8, 2023
1 parent c35f097 commit f7835ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
[data]="dailyAppointmentsPatientList"
[extraColumns]="extraColumns"
[hivColumns]="true"
[excludecolumns]="true"
>
</patient-list>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ export class PatientListColumns {
{
headerName: 'Previous VL',
width: 75,
field: 'latest_vl'
field: 'previous_vl'
},
{
headerName: 'Previous VL Date',
width: 150,
field: 'latest_vl_date'
field: 'previous_vl_date'
},
{
headerName: 'Nearest Center',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class PatientListComponent implements OnInit {
}

if (this.excludecolumns) {
const columnsToExclude = ['latest_vl', 'latest_vl_date'];
const columnsToExclude = ['previous_vl', 'previous_vl_date'];
columns = _.filter(columns, (col) => {
return !_.includes(columnsToExclude, col['field']);
});
Expand Down

0 comments on commit f7835ac

Please sign in to comment.