Browse Source

Node nale shows "f" when "filter true" is selected and "t" (triggername) when "trigger only by single topic" is selected.

master
Massimo 5 years ago
parent
commit
f91e48e93c
3 changed files with 8 additions and 4 deletions
  1. +4
    -0
      CHANGELOG.md
  2. +3
    -3
      boolean-logic-ultimate/BooleanLogicUltimate.html
  3. +1
    -1
      package.json

+ 4
- 0
CHANGELOG.md View File

# node-red-contrib-boolean-logic-ultimate # node-red-contrib-boolean-logic-ultimate
<p> <p>
<b>Version 1.0.7</b><br/>
- Node nale shows "f" when "filter true" is selected and "t" (triggername) when "trigger only by single topic" is selected.<br/>
</p>
<p>
<b>Version 1.0.6</b><br/> <b>Version 1.0.6</b><br/>
- Stripped out the date/time in node status<br/> - Stripped out the date/time in node status<br/>
</p> </p>

+ 3
- 3
boolean-logic-ultimate/BooleanLogicUltimate.html View File

label: label:
function() { function() {
let label = ""; let label = "";
let filtered=this.filtertrue=="both" ? "" : " |T" ;
let filtered=this.filtertrue=="both" ? "" : " f" ;
let trigger=""; let trigger="";
if(typeof this.outputtriggeredby !== "undefined") trigger=this.outputtriggeredby=="all" ? "" : " |TRIG (" + this.triggertopic+")";
if(typeof this.outputtriggeredby !== "undefined") trigger=this.outputtriggeredby=="all" ? "" : "t (" + this.triggertopic+")";
label= this.inputCount + ((filtered+trigger)==""?" Boolean Logic":(filtered+trigger)); label= this.inputCount + ((filtered+trigger)==""?" Boolean Logic":(filtered+trigger));
if( this.name !== undefined && this.name.length > 0 ) { if( this.name !== undefined && this.name.length > 0 ) {
label += " (" + this.name + ")"; label += " (" + this.name + ")";
return label; return label;
}, },
paletteLabel: function() { paletteLabel: function() {
return "Boolean Logic Ultimate";
return "BooleanLogicUltimate";
}, },
oneditprepare: function () { oneditprepare: function () {
// Add write and response as default for existing nodes like was default before // Add write and response as default for existing nodes like was default before

+ 1
- 1
package.json View File

{ {
"name": "node-red-contrib-boolean-logic-ultimate", "name": "node-red-contrib-boolean-logic-ultimate",
"version": "1.0.6",
"version": "1.0.7",
"description": "A set of Node-RED enhanced boolean logic, with persisten values after reboot and more", "description": "A set of Node-RED enhanced boolean logic, with persisten values after reboot and more",
"author": "Supergiovane (https://github.com/Supergiovane)", "author": "Supergiovane (https://github.com/Supergiovane)",
"dependencies": { "dependencies": {

Loading…
Cancel
Save