Added reminder message to remind users when there is no notification (#2382)
This commit is contained in:
@@ -2,15 +2,21 @@
|
|||||||
<div class="mat-elevation-z8">
|
<div class="mat-elevation-z8">
|
||||||
<table mat-table [dataSource]="dataSource" matSort>
|
<table mat-table [dataSource]="dataSource" matSort>
|
||||||
<ng-container matColumnDef="notification">
|
<ng-container matColumnDef="notification">
|
||||||
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.Notification' | translate }}</th>
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
||||||
<td mat-cell *matCellDef="let notification">{{ notification.content }}</td>
|
{{ 'labels.inputs.Notification' | translate }}
|
||||||
|
</th>
|
||||||
|
<td mat-cell *matCellDef="let notification">
|
||||||
|
{{ notification.content }}
|
||||||
|
</td>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<ng-container matColumnDef="createdAt">
|
<ng-container matColumnDef="createdAt">
|
||||||
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.Created At' | translate }}</th>
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
||||||
<td mat-cell *matCellDef="let notification">{{ notification.createdAt }}</td>
|
{{ 'labels.inputs.Created At' | translate }}
|
||||||
|
</th>
|
||||||
|
<td mat-cell *matCellDef="let notification">
|
||||||
|
{{ notification.createdAt }}
|
||||||
|
</td>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
||||||
<tr
|
<tr
|
||||||
mat-row
|
mat-row
|
||||||
@@ -18,8 +24,12 @@
|
|||||||
class="select-row"
|
class="select-row"
|
||||||
[routerLink]="[routeMap[row.objectType], row.objectId]"
|
[routerLink]="[routeMap[row.objectType], row.objectId]"
|
||||||
></tr>
|
></tr>
|
||||||
|
<tr *matNoDataRow>
|
||||||
|
<td [attr.colspan]="displayedColumns.length" style="text-align: center; padding: 16px; color: #999">
|
||||||
|
You don't have any notifications
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<mat-paginator [pageSizeOptions]="[10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
|
<mat-paginator [pageSizeOptions]="[10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user