From 788aaf2240ed39b9243dc0df0c229f100f547716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Fri, 1 Mar 2019 17:51:51 +0100 Subject: [PATCH] Remove progress bar in unanswered collections --- .../shared/list-statistic/list-statistic.component.html | 2 +- .../shared/list-statistic/list-statistic.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 27862d1f6..e8a0282b2 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 20b1834ad..96e86855e 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; -- GitLab