add invite message

This commit is contained in:
_Bastler 2021-05-07 11:52:58 +02:00
parent 6332285265
commit 908a54506c
2 changed files with 10 additions and 2 deletions

View File

@ -26,7 +26,15 @@
<ng-container matColumnDef="note">
<th mat-header-cell *matHeaderCellDef> {{'invite.note' | i18n}} </th>
<td mat-cell *matCellDef="let invite"> <span *ngIf="invite.note">{{ invite.note}}</span> <i *ngIf="!invite.note">{{ 'invite.noNote' | i18n}}</i> </td>
<td mat-cell *matCellDef="let invite"> <span *ngIf="invite.note">{{ invite.note}}</span> <i *ngIf="!invite.note">{{ 'invite.noNote' | i18n}}</i>
</td>
</ng-container>
<ng-container matColumnDef="message">
<th mat-header-cell *matHeaderCellDef> {{'invite.message' | i18n}} </th>
<td mat-cell *matCellDef="let invite"> <i *ngIf="!invite.message">{{ 'invite.noMessage' | i18n}}</i>
<mat-icon matTooltip="{{ invite.message}}" inline="true" *ngIf="invite.message">article</mat-icon>
</td>
</ng-container>
<ng-container matColumnDef="redeemed">

View File

@ -28,7 +28,7 @@ export class InvitesComponent implements OnInit {
searchFormControl = new FormControl();
searchOthersFormControl = new FormControl();
inviteColumns = ["starts", "expires", "link", "note", "redeemed"];
inviteColumns = ["starts", "expires", "link", "note", "message", "redeemed"];
otherColumns = ["note"];
constructor(