forked from jappel/leistungsbilanz-ts
Format project device power values on project page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
68d986ff80
commit
cf022b250f
1 changed files with 5 additions and 3 deletions
|
|
@ -73,6 +73,7 @@ import {
|
||||||
updateProjectSettings,
|
updateProjectSettings,
|
||||||
} from "../../../frontend/utils/api";
|
} from "../../../frontend/utils/api";
|
||||||
import { createClientId } from "../../../frontend/utils/client-id";
|
import { createClientId } from "../../../frontend/utils/client-id";
|
||||||
|
import { formatValue } from "../../../frontend/utils/circuit-grid-model";
|
||||||
import {
|
import {
|
||||||
buildFeederCircuitSnapshot,
|
buildFeederCircuitSnapshot,
|
||||||
getDefaultFeederCircuitSection,
|
getDefaultFeederCircuitSection,
|
||||||
|
|
@ -1294,10 +1295,11 @@ export default function ProjectDetailPage() {
|
||||||
) : null}
|
) : null}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{device.totalPower} kW
|
{formatValue(device.totalPower, "rowTotalPower")} kW
|
||||||
<div className="small text-secondary">
|
<div className="small text-secondary">
|
||||||
{device.quantity} × {device.powerPerUnit} kW · GZF{" "}
|
{formatValue(device.quantity, "quantity")} ×{" "}
|
||||||
{device.simultaneityFactor}
|
{formatValue(device.powerPerUnit, "powerPerUnit")} kW · GZF{" "}
|
||||||
|
{formatValue(device.simultaneityFactor, "simultaneityFactor")}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>{device.costGroup ?? "-"}</td>
|
<td>{device.costGroup ?? "-"}</td>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue