diff options
Diffstat (limited to 'gae/frontend/src/app/menu/schedule/schedule.component.html')
-rw-r--r-- | gae/frontend/src/app/menu/schedule/schedule.component.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gae/frontend/src/app/menu/schedule/schedule.component.html b/gae/frontend/src/app/menu/schedule/schedule.component.html index e260325..910d45b 100644 --- a/gae/frontend/src/app/menu/schedule/schedule.component.html +++ b/gae/frontend/src/app/menu/schedule/schedule.component.html @@ -77,6 +77,15 @@ <mat-cell *matCellDef="let schedule"> {{schedule.period}}</mat-cell> </ng-container> + <!-- Status Column --> + <ng-container matColumnDef="status"> + <mat-header-cell *matHeaderCellDef>Status</mat-header-cell> + <mat-cell *matCellDef="let schedule" + [ngStyle]="{color: (schedule.suspended || isExpired(schedule.timestamp)) ? '#FF0000' : '#000000'}"> + {{schedule.suspended ? "Suspended" : (isExpired(schedule.timestamp) ? "Expired" : "Active")}} + </mat-cell> + </ng-container> + <!-- Timestamp Column --> <ng-container matColumnDef="timestamp"> <mat-header-cell *matHeaderCellDef>Timestamp</mat-header-cell> |