mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
catch node extended
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<label style="width: auto" for="node-input-scope" data-i18n="catch.label.source"></label>
|
||||
<select id="node-input-scope-select">
|
||||
<option value="all" data-i18n="catch.scope.all"></option>
|
||||
<option value="group" data-i18n="status.scope.group"></option>
|
||||
<option value="target" data-i18n="catch.scope.selected"></options>
|
||||
</select>
|
||||
</div>
|
||||
@@ -170,6 +171,8 @@
|
||||
});
|
||||
if (this.scope === null) {
|
||||
$("#node-input-scope-select").val("all");
|
||||
} else if(this.scope === "group"){
|
||||
$("#node-input-scope-select").val("group");
|
||||
} else {
|
||||
$("#node-input-scope-select").val("target");
|
||||
}
|
||||
@@ -179,6 +182,8 @@
|
||||
var scope = $("#node-input-scope-select").val();
|
||||
if (scope === 'all') {
|
||||
this.scope = null;
|
||||
} else if(scope === 'group') {
|
||||
this.scope = "group";
|
||||
} else {
|
||||
$("#node-input-uncaught").prop("checked",false);
|
||||
this.scope = $("#node-input-catch-target-container-div").treeList('selected').map(function(i) { return i.node.id})
|
||||
|
@@ -98,6 +98,7 @@
|
||||
},
|
||||
"scope": {
|
||||
"all": "allen Nodes",
|
||||
"group": "in gleicher Gruppe",
|
||||
"selected": "ausgewählten Nodes"
|
||||
}
|
||||
},
|
||||
|
@@ -103,6 +103,7 @@
|
||||
},
|
||||
"scope": {
|
||||
"all": "all nodes",
|
||||
"group": "in same group",
|
||||
"selected": "selected nodes"
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user