mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-21 02:07:12 +02:00
web: alarm list: show inverter name
rename alarm table header "String" to "Event" Signed-off-by: Peter H. Demus <peter@demus.de>
This commit is contained in:
parent
3a29d6c258
commit
9e09dc5530
2 changed files with 3 additions and 2 deletions
|
@ -424,6 +424,7 @@ class RestApi {
|
||||||
record_t<> *rec = iv->getRecordStruct(RealTimeRunData_Debug);
|
record_t<> *rec = iv->getRecordStruct(RealTimeRunData_Debug);
|
||||||
|
|
||||||
obj[F("iv_id")] = id;
|
obj[F("iv_id")] = id;
|
||||||
|
obj[F("iv_name")] = String(iv->config->name);
|
||||||
obj[F("cnt")] = iv->alarmCnt;
|
obj[F("cnt")] = iv->alarmCnt;
|
||||||
obj[F("last_id")] = iv->getChannelFieldValue(CH0, FLD_EVT, rec);
|
obj[F("last_id")] = iv->getChannelFieldValue(CH0, FLD_EVT, rec);
|
||||||
|
|
||||||
|
|
|
@ -243,7 +243,7 @@
|
||||||
var offs = new Date().getTimezoneOffset() * -60;
|
var offs = new Date().getTimezoneOffset() * -60;
|
||||||
html.push(
|
html.push(
|
||||||
ml("div", {class: "row"}, [
|
ml("div", {class: "row"}, [
|
||||||
ml("div", {class: "col"}, ml("strong", {}, "String")),
|
ml("div", {class: "col"}, ml("strong", {}, "Event")),
|
||||||
ml("div", {class: "col"}, ml("strong", {}, "ID")),
|
ml("div", {class: "col"}, ml("strong", {}, "ID")),
|
||||||
ml("div", {class: "col"}, ml("strong", {}, "Start")),
|
ml("div", {class: "col"}, ml("strong", {}, "Start")),
|
||||||
ml("div", {class: "col"}, ml("strong", {}, "End"))
|
ml("div", {class: "col"}, ml("strong", {}, "End"))
|
||||||
|
@ -262,7 +262,7 @@
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modal("Alarms of inverter #" + obj.iv_id, ml("div", {}, html));
|
modal("Alarms of inverter " + obj.iv_name, ml("div", {}, html));
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseIvVersion(obj) {
|
function parseIvVersion(obj) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue