add pump current configuration

This commit is contained in:
2025-06-26 02:39:32 +02:00
parent 577c38d026
commit 5d91daf23d
12 changed files with 492 additions and 275 deletions

View File

@@ -28,7 +28,7 @@ import {
SetTime, SSIDList, TankInfo,
TestPump,
VersionInfo,
FileList, SolarState
FileList, SolarState, PumpTestResult
} from "./api";
import {SolarView} from "./solarview";
@@ -345,9 +345,10 @@ export class Controller {
method: "POST",
body: pretty
})
.then(response => response.text())
.then(response => response.json() as Promise<PumpTestResult>)
.then(
_ => {
response => {
controller.plantViews.setPumpTestCurrent(plantId, response);
clearTimeout(timerId);
controller.progressview.removeProgress("test_pump");
}