add pump current configuration
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user