ソースを参照

Node status adjustmend

master
Massimo 5年前
コミット
066bf5a287
4個のファイルの変更10行の追加4行の削除
  1. +4
    -0
      CHANGELOG.md
  2. +2
    -2
      boolean-logic-ultimate/BooleanLogicUltimate.html
  3. +3
    -1
      boolean-logic-ultimate/BooleanLogicUltimate.js
  4. +1
    -1
      package.json

+ 4
- 0
CHANGELOG.md ファイルの表示

@@ -1,5 +1,9 @@
# node-red-contrib-boolean-logic-ultimate
<p>
<b>Version 1.0.3</b><br/>
- Node status: cosmetic adjustments<br/>
</p>
<p>
<b>Version 1.0.2</b><br/>
- Added "trigger mode" option (fixed UI glitch)<br/>
</p>

+ 2
- 2
boolean-logic-ultimate/BooleanLogicUltimate.html ファイルの表示

@@ -55,9 +55,9 @@
label:
function() {
let label = "";
let filtered=this.filtertrue=="both" ? "" : " |TRUE" ;
let filtered=this.filtertrue=="both" ? "" : " |T" ;
let trigger="";
if(typeof this.outputtriggeredby !== "undefined") trigger=this.outputtriggeredby=="all" ? "" : " |TRIG:" + this.triggertopic;
if(typeof this.outputtriggeredby !== "undefined") trigger=this.outputtriggeredby=="all" ? "" : " |TRIG (" + this.triggertopic+")";
label= this.inputCount + ((filtered+trigger)==""?" Boolean Logic":(filtered+trigger));
if( this.name !== undefined && this.name.length > 0 ) {
label += " (" + this.name + ")";

+ 3
- 1
boolean-logic-ultimate/BooleanLogicUltimate.js ファイルの表示

@@ -78,8 +78,10 @@ module.exports = function(RED) {
&& node.config.triggertopic === msg.topic)
{
SetResult(resAND, resOR, resXOR, node.config.topic);
} else
{
node.status({ fill: "grey", shape: "ring", text: "Saved (" + (msg.hasOwnProperty("topic") ? msg.topic : "empty input topic") + ") " + value});
}
node.status({ fill: "grey", shape: "ring", text: " Saved " + msg.hasOwnProperty("topic") ? msg.topic : "empty input topic"});
} else
{
SetResult(resAND, resOR, resXOR, node.config.topic);

+ 1
- 1
package.json ファイルの表示

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

読み込み中…
キャンセル
保存