Skip to content
Snippets Groups Projects
Commit 4f5bb201 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Fix color changing when status exactly 'statusGood'

parent e0ad3d85
Branches
Tags
No related merge requests found
......@@ -10,28 +10,28 @@
<ng-container matColumnDef="content">
<mat-header-cell *matHeaderCellDef> Content </mat-header-cell>
<mat-cell *matCellDef="let cp" [ngClass]="{'positiveC' : cp.percent > statusGood,
<mat-cell *matCellDef="let cp" [ngClass]="{'positiveC' : cp.percent >= statusGood,
'okayC' : cp.percent >= statusOkay && cp.percent < statusGood, 'negativeC' : cp.percent < statusOkay,
'emptyCC' : cp.percent < statusZero }">{{cp.content.subject}}</mat-cell>
</ng-container>
<ng-container matColumnDef="percentage">
<mat-header-cell *matHeaderCellDef> Percentage </mat-header-cell>
<mat-cell *matCellDef="let cp" [ngClass]="{'positiveC' : cp.percent > statusGood,
<mat-cell *matCellDef="let cp" [ngClass]="{'positiveC' : cp.percent >= statusGood,
'okayC' : cp.percent >= statusOkay && cp.percent < statusGood, 'negativeC' : cp.percent < statusOkay,
'emptyC' : cp.percent < statusZero }">{{cp.percent.toFixed() + ' %'}}</mat-cell>
</ng-container>
<ng-container matColumnDef="counts">
<mat-header-cell *matHeaderCellDef> Total </mat-header-cell>
<mat-cell *matCellDef="let cp" [ngClass]="{'positiveC' : cp.percent > statusGood,
<mat-cell *matCellDef="let cp" [ngClass]="{'positiveC' : cp.percent >= statusGood,
'okayC' : cp.percent >= statusOkay && cp.percent < statusGood, 'negativeC' : cp.percent < statusOkay,
'emptyC' : cp.percent < statusZero }">{{cp.counts}}</mat-cell>
</ng-container>
<ng-container matColumnDef="abstentions">
<mat-header-cell *matHeaderCellDef> Abstentions </mat-header-cell>
<mat-cell *matCellDef="let cp" [ngClass]="{'positiveC' : cp.percent > statusGood,
<mat-cell *matCellDef="let cp" [ngClass]="{'positiveC' : cp.percent >= statusGood,
'okayC' : cp.percent >= statusOkay && cp.percent < statusGood, 'negativeC' : cp.percent < statusOkay,
'emptyC' : cp.percent < statusZero }">{{cp.abstentions}}</mat-cell>
</ng-container>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment