update invites

This commit is contained in:
_Bastler 2021-05-07 09:54:51 +02:00
parent 3dc5c5f131
commit 7b0364ae8e
2 changed files with 8 additions and 1 deletions

View File

@ -25,6 +25,13 @@
<td mat-cell *matCellDef="let invite"> {{ invite.note}} </td> <td mat-cell *matCellDef="let invite"> {{ invite.note}} </td>
</ng-container> </ng-container>
<ng-container matColumnDef="redeemed">
<th mat-header-cell *matHeaderCellDef> {{'invite.redeemed' | i18n}} </th>
<td mat-cell *matCellDef="let invite">
<mat-icon *ngIf="invite.redeemed">how_to_reg</mat-icon>
</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="inviteColumns"></tr> <tr mat-header-row *matHeaderRowDef="inviteColumns"></tr>
<tr mat-row *matRowDef="let myRowData; columns: inviteColumns"></tr> <tr mat-row *matRowDef="let myRowData; columns: inviteColumns"></tr>
</table> </table>

View File

@ -27,7 +27,7 @@ export class InvitesComponent implements OnInit {
pageSizeOptions: number[] = [5, 10, 25, 50]; pageSizeOptions: number[] = [5, 10, 25, 50];
searchFormControl = new FormControl(); searchFormControl = new FormControl();
inviteColumns = ["starts", "expires", "link", "note"]; inviteColumns = ["starts", "expires", "link", "note", "redeemed"];
otherColumns = ["note"]; otherColumns = ["note"];
constructor( constructor(