Skip to content

Commit

Permalink
#2190 Fixed feature 'Apply new properties basing on' for property 'Ev…
Browse files Browse the repository at this point in the history
…ent text renderer properties'

- Added keywords in some variables to fix applying and displaying changes of event text renderer
  • Loading branch information
Patrykb0802 committed Aug 10, 2023
1 parent 6737325 commit 6f87c39
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions WebContent/WEB-INF/jsp/dataPointEdit.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@
}
for (var multistate in properties.eventTextRenderer.multistateEventValues) {
eventTextRendererEditor.addMultistateEventValue(
String( properties.eventTextRenderer.multistateValues[multistate].key ),
String( properties.eventTextRenderer.multistateValues[multistate].text ));
String( properties.eventTextRenderer.multistateEventValues[multistate].key ),
String( properties.eventTextRenderer.multistateEventValues[multistate].text ));
}
} catch (err) {
console.log(err);
Expand All @@ -214,8 +214,8 @@
} else {
for (var multistate in properties.eventTextRenderer.multistateEventValues) {
eventTextRendererEditor.addMultistateEventValue(
String( properties.eventTextRenderer.multistateValues[multistate].key ),
String( properties.eventTextRenderer.multistateValues[multistate].text ));
String( properties.eventTextRenderer.multistateEventValues[multistate].key ),
String( properties.eventTextRenderer.multistateEventValues[multistate].text ));
}
}
}
Expand Down Expand Up @@ -636,29 +636,29 @@
let eventTextRenderer = "";
if (properties.def.name == "eventTextRendererBinary") {
if (properties.eventTextRenderer.def.name == "eventTextRendererBinary") {
eventTextRenderer = ""
+ "<li>Event text renderer properties: Binary"
+ "<ul class='scada-swal-ul2'>"
+ "<li>zero: " + properties.eventTextRenderer.zeroLabel + "</li>"
+ "<li>one: " + properties.eventTextRenderer.oneLabel + "</li></ul></li>";
}
if (properties.def.name == "eventTextRendererMultistate") {
if (properties.eventTextRenderer.def.name == "eventTextRendererMultistate") {
eventTextRenderer = ""
+ "<li>Event text renderer properties: Multistate "
+ "<ul class='scada-swal-ul2'>";
for (var multistate in properties.eventTextRenderer.multistateValues) {
eventTextRenderer = eventTextRenderer + "<li>key: " + properties.eventTextRenderer.multistateValues[multistate].key
+ " text: " + properties.eventTextRenderer.multistateValues[multistate].text + "</li>";
for (var multistate in properties.eventTextRenderer.multistateEventValues) {
eventTextRenderer = eventTextRenderer + "<li>key: " + properties.eventTextRenderer.multistateEventValues[multistate].key
+ " text: " + properties.eventTextRenderer.multistateEventValues[multistate].text + "</li>";
}
eventTextRenderer = eventTextRenderer + "</ul></li>";
}
if (properties.def.name == "eventTextRendererRange") {
if (properties.eventTextRenderer.def.name == "eventTextRendererRange") {
eventTextRenderer = ""
+ "<li>Text renderer properties: Range "
Expand Down

0 comments on commit 6f87c39

Please sign in to comment.