node-red-contrib-mobius-flow-base 2.5.86-beta.95 → 2.5.86-beta.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -225,9 +225,9 @@ module.exports = function (RED) {
|
|
|
225
225
|
response.text = 'Never Active';
|
|
226
226
|
}
|
|
227
227
|
return {
|
|
228
|
-
fill: response.
|
|
228
|
+
fill: response.colour,
|
|
229
229
|
shape: 'dot',
|
|
230
|
-
text: response.
|
|
230
|
+
text: response.text,
|
|
231
231
|
};
|
|
232
232
|
};
|
|
233
233
|
|
|
@@ -238,9 +238,9 @@ module.exports = function (RED) {
|
|
|
238
238
|
node.updateNodeStatus = function (mobiusNode) {
|
|
239
239
|
node.users[mobiusNode.id] = mobiusNode;
|
|
240
240
|
let newStatus = {
|
|
241
|
-
fill: '
|
|
241
|
+
fill: 'green',
|
|
242
242
|
shape: 'dot',
|
|
243
|
-
text: '
|
|
243
|
+
text: 'Connected',
|
|
244
244
|
};
|
|
245
245
|
switch (node.users[mobiusNode.id].statusType) {
|
|
246
246
|
case 'timeSinceLastActive':
|
|
@@ -249,9 +249,9 @@ module.exports = function (RED) {
|
|
|
249
249
|
const uri = node.users[mobiusNode.id].latestUri;
|
|
250
250
|
if (uri !== '') {
|
|
251
251
|
newStatus = {
|
|
252
|
-
fill:
|
|
252
|
+
fill: 'green',
|
|
253
253
|
shape: 'dot',
|
|
254
|
-
text:
|
|
254
|
+
text: uri,
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
257
|
}
|
|
@@ -55,7 +55,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
|
55
55
|
<hr>
|
|
56
56
|
<div class="form-row">
|
|
57
57
|
<label for="node-input-statusType" style="width: 30%;"><i class="fa fa-bars"></i> Status Display</label>
|
|
58
|
-
<select type="text" id="node-input-statusType" style="width:
|
|
58
|
+
<select type="text" id="node-input-statusType" style="width: 320px; display: inline-block; width: auto; vertical-align: center;">
|
|
59
59
|
<option value="timeSinceLastActive">Time since last active</option>
|
|
60
60
|
<option value="lastUri">Last URI</option>
|
|
61
61
|
</select>
|