Skip to content

Commit

Permalink
Changed switches to states
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Jul 28, 2016
1 parent c673de6 commit 27ab1e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions htdocs/frontend/javascripts/wui.js
Expand Up @@ -502,7 +502,7 @@ vz.wui.updateLegend = function() {
y = p[1];
else
y = null;
} else if (series.lines.switches) {
} else if (series.lines.states) {
y = null;
if (j < series.data.length) {
var p2 = series.data[j];
Expand Down Expand Up @@ -844,8 +844,8 @@ vz.wui.drawPlot = function () {
title: entity.title,
unit : entity.definition.unit,
lines: {
show: style == 'lines' || style == 'steps' || style == 'switches',
steps: style == 'steps' || style == 'switches',
show: style == 'lines' || style == 'steps' || style == 'states',
steps: style == 'steps' || style == 'states',
fill: fillstyle !== undefined ? fillstyle : false,
lineWidth: linewidth
},
Expand Down
2 changes: 1 addition & 1 deletion lib/Definition/EntityDefinition.json
Expand Up @@ -270,7 +270,7 @@
"unit" : "",
"scale" : 1000,
"interpreter" : "Volkszaehler\\Interpreter\\SensorInterpreter",
"style" : "switches",
"style" : "states",
"model" : "Volkszaehler\\Model\\Channel",
"hasConsumption" : true,
"translation" : {
Expand Down
2 changes: 1 addition & 1 deletion lib/Definition/PropertyDefinition.json
Expand Up @@ -383,7 +383,7 @@
"options" : [
"lines",
"steps",
"switches",
"states",
"points"
],
"translation" : {
Expand Down

0 comments on commit 27ab1e5

Please sign in to comment.