Skip to content

Commit

Permalink
add active column to contributors table (#2538)
Browse files Browse the repository at this point in the history
  • Loading branch information
iajaymk authored Oct 29, 2023
1 parent 3112171 commit c19e93c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@
</td>
</ng-container>

<ng-container matColumnDef="active">
<th mat-header-cell *matHeaderCellDef mat-sort-header>
{{
'Admin.Modules.Contributors.Components.ContributorsTable.ColumnsName.Active'
| translate
}}
</th>
<td mat-cell *matCellDef="let user">
{{ user.active?'Active':'Inactive' }}
</td>
</ng-container>

<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr
mat-row
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export class ContributorsComponent implements OnInit, OnDestroy {
'company',
'contacts',
'contribution',
'active'
];
public readonly isLoading$ = new BehaviorSubject(true);
public contributorsList: Contributor[];
Expand Down
3 changes: 2 additions & 1 deletion frontend-angular/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@
"Type": "Type",
"Company": "Company",
"Contact": "Contact",
"Contribution": "Contribution"
"Contribution": "Contribution",
"Active":"Active/Inactive"
}
}
},
Expand Down

0 comments on commit c19e93c

Please sign in to comment.