mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-23 15:21:35 +01:00
fix free storage info bug
This commit is contained in:
parent
9afd0c9c3c
commit
39cfaf4be3
@ -5,7 +5,7 @@
|
|||||||
<div #barTwo class="esxc-gauge-circle-fill esxc-gauge-bar-two"></div>
|
<div #barTwo class="esxc-gauge-circle-fill esxc-gauge-bar-two"></div>
|
||||||
<div class="esxc-gauge-circle-inner" [ngStyle]="{'background-color': backgroundColor}">
|
<div class="esxc-gauge-circle-inner" [ngStyle]="{'background-color': backgroundColor}">
|
||||||
<div class="esxc-gauge-circle-caption">
|
<div class="esxc-gauge-circle-caption">
|
||||||
<span class="esxc-value">{{used}}</span>
|
<span class="esxc-value">{{free}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -136,6 +136,10 @@ export class GaugeComponent implements AfterViewInit {
|
|||||||
this.determineColors();
|
this.determineColors();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get used(): number {
|
||||||
|
return this._threasHold - this._free;
|
||||||
|
}
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
get threasHold(): number {
|
get threasHold(): number {
|
||||||
return this._threasHold;
|
return this._threasHold;
|
||||||
|
Loading…
Reference in New Issue
Block a user