Skip to content

Commit c75f40b

Browse files
palbizuPatricio Albizu
andauthored
feat: Adding bar gauge htDisplayNumber pipe (#1016)
* feat: Adding bar gauge htDisplayNumber * feat: fixing label Co-authored-by: Patricio Albizu <patricioalbizu@Patricios-MacBook-Pro.local>
1 parent c23f64d commit c75f40b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

projects/observability/src/shared/components/bar-gauge/bar-gauge.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ import {
2727
<div class="header-data" [ngClass]="this.display">
2828
<div *ngIf="this.title" class="title">{{ this.title | htDisplayTitle }}</div>
2929
<div class="count">
30-
<span>{{ this.totalValue | number }}</span>
31-
<span class="units" *ngIf="this.units && this.isUnlimited"> {{ this.units }}</span>
30+
<span>{{ this.totalValue | htDisplayNumber }}</span>
3231
<span> / </span>
33-
<span *ngIf="!this.isUnlimited">{{ this.maxValue | number }}</span>
32+
<span *ngIf="!this.isUnlimited">{{ this.maxValue | htDisplayNumber }}</span>
3433
<span class="unlimited-symbol" *ngIf="this.isUnlimited">&#8734;</span>
3534
<span class="units" *ngIf="this.units && !this.isUnlimited"> {{ this.units }}</span>
3635
</div>

0 commit comments

Comments
 (0)