Skip to content
Permalink
Browse files

unpluralize json types to match earlier changes

  • Loading branch information...
mstevetodd committed May 15, 2019
1 parent add3d63 commit 86c6f1892384d34480ab1051503601c5f848b4e6
Showing with 6 additions and 6 deletions.
  1. +6 −6 web/js/tables.js
@@ -98,32 +98,32 @@ function displayCellValue(type, colName, value) {
//convert known states to human-readable strings, if not known show as is
if ((colName == "state") || (colName == "occupiedSense")) {
switch (type) {
case "turnouts":
case "turnout":
switch (value) {
case 0: return "unknown";
case 2: return "closed";
case 4: return "thrown";
case 8: return "inconsistent";
default: return value;
}
case "routes":
case "sensors":
case "layoutBlocks":
case "route":
case "sensor":
case "layoutBlock":
switch (value) {
case 0: return "unknown";
case 2: return "active";
case 4: return "inactive";
case 8: return "inconsistent";
default: return value;
}
case "blocks":
case "block":
switch (value) {
case jmri.UNKNOWN: return "unknown";
case 2: return "occupied";
case 4: return "unoccupied";
default: return value;
}
case "lights":
case "light":
switch (value) {
case 0: return "unknown";
case 2: return "on";

0 comments on commit 86c6f18

Please sign in to comment.
You can’t perform that action at this time.