Skip to content

Commit

Permalink
Minor fixes to UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Mørch committed Apr 28, 2018
1 parent ab8ca6d commit 5b5bf9f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/nodes/controller.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
<td>
${c.lastHeard}
</td>
<td>
${(c.parentId !== c.id && c.parentId !== null)?c.parentId:''}
</td>
</tr>`;
}
$('#nodelist').html(html);
Expand Down Expand Up @@ -62,6 +65,7 @@
<th>sketch</th>
<th>version</th>
<th>last heard</th>
<th>via</th>
</tr>
</thead>
<tbody id="nodelist">
Expand Down
8 changes: 4 additions & 4 deletions src/nodes/encapsulate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ export = (RED: Red) => {
function getSensor(config: IEncapsulateProperties): IMysensorsMsg {
const sensor: IMysensorsMsg = {
ack: config.ack ? 1 : 0,
childSensorId: config.childid * 1,
messageType: config.msgtype * 1,
nodeId: config.nodeid * 1,
childSensorId: Number(config.childid),
messageType: Number(config.msgtype),
nodeId: Number(config.nodeid),
payload: '',
subType: config.subtype * 1,
subType: Number(config.subtype),
};
return sensor;
}
1 change: 0 additions & 1 deletion src/nodes/encode.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
$('#node-input-row-mqtttopic').hide();
}
});

}
});
</script>
Expand Down

0 comments on commit 5b5bf9f

Please sign in to comment.