diff --git a/src/app/components/shared/list-statistic/list-statistic.component.html b/src/app/components/shared/list-statistic/list-statistic.component.html index 27862d1f62ec988e1858e97298c5c9b7b8e2413c..e8a0282b2f08807e8c6bc98f57d7c9423146fe44 100644 --- a/src/app/components/shared/list-statistic/list-statistic.component.html +++ b/src/app/components/shared/list-statistic/list-statistic.component.html @@ -4,7 +4,7 @@ <mat-progress-bar class="progress-theme" mode="determinate" value="{{total}}" *ngIf="total < status.good && total >= status.okay" color="accent"></mat-progress-bar> <mat-progress-bar class="progress-theme" mode="determinate" value="{{total}}" - *ngIf="total < status.okay && total >= status.empty" color="warn"></mat-progress-bar> + *ngIf="total < status.okay && total != status.empty" color="warn"></mat-progress-bar> <mat-toolbar></mat-toolbar> <table mat-table [dataSource]="dataSource" class="mat-elevation-z8"> diff --git a/src/app/components/shared/list-statistic/list-statistic.component.ts b/src/app/components/shared/list-statistic/list-statistic.component.ts index 20b1834ad38bcc111884266dc0168a5e43a09f08..96e86855ed0389800928201fb42048d1665f83c4 100644 --- a/src/app/components/shared/list-statistic/list-statistic.component.ts +++ b/src/app/components/shared/list-statistic/list-statistic.component.ts @@ -45,7 +45,7 @@ export class ListStatisticComponent implements OnInit { zero: 0 }; dataSource: ContentStatistic[]; - total = 0; + total: number; totalP = 0; contentCounter = 0; roomId: number;