diff --git a/dashboard/nodes/locales/en-US/soop_tab.html b/dashboard/nodes/locales/en-US/soop_tab.html
deleted file mode 100644
index 2ffe2068..00000000
--- a/dashboard/nodes/locales/en-US/soop_tab.html
+++ /dev/null
@@ -1,5 +0,0 @@
-
\ No newline at end of file
diff --git a/dashboard/nodes/locales/en-US/soop_tab.json b/dashboard/nodes/locales/en-US/soop_tab.json
deleted file mode 100644
index 13296fd7..00000000
--- a/dashboard/nodes/locales/en-US/soop_tab.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "soop_tab": {
- "label": {
- "tab": "Tab ",
- "name": "Name"
- }
-
- }
-}
\ No newline at end of file
diff --git a/dashboard/nodes/soop_group.html b/dashboard/nodes/soop_group.html
index f9f7b22a..f9cea069 100644
--- a/dashboard/nodes/soop_group.html
+++ b/dashboard/nodes/soop_group.html
@@ -1,96 +1,122 @@
\ No newline at end of file
diff --git a/dashboard/nodes/soop_group.js b/dashboard/nodes/soop_group.js
index 712bd881..f445d312 100644
--- a/dashboard/nodes/soop_group.js
+++ b/dashboard/nodes/soop_group.js
@@ -1,24 +1,33 @@
module.exports = function(RED) {
+ const dashboard = require("../dashboard")(RED);
function GroupNode(config) {
+ const node = this;
RED.nodes.createNode(this, config);
this.config = {
name: config.name,
displayVisible: config.displayVisible,
- groupX: config.x,
- groupY: config.y,
+ groupX: config.groupX,
+ groupY: config.groupY,
width: config.width,
height: config.height,
order: config.order,
tab: config.tab,
groupState: config.groupState,
- includedNodesId: config.includedNodesId
+ includedNodesId: config.includedNodesId,
};
- if (!this.config.hasOwnProperty("displayVisible")) { this.config.displayVisible = true; }
- if (this.config.displayVisible !== false) { this.config.displayVisible = true; }
+ if (!this.config.hasOwnProperty("displayVisible")) {
+ this.config.displayVisible = true;
+ }
+ if (this.config.displayVisible !== false) {
+ this.config.displayVisible = true;
+ }
for (var i = 0; i < this.config.height; i++) {
this.config.groupState[i] = new Array(this.config.width);
}
+ dashboard.addNode({
+ node: node,
+ });
}
RED.nodes.registerType("soop_group", GroupNode);
diff --git a/dashboard/nodes/soop_tab.html b/dashboard/nodes/soop_tab.html
index b9346279..0775c071 100644
--- a/dashboard/nodes/soop_tab.html
+++ b/dashboard/nodes/soop_tab.html
@@ -1,18 +1,130 @@
\ No newline at end of file
diff --git a/dashboard/nodes/soop_tab.js b/dashboard/nodes/soop_tab.js
index a7f004c0..5d0dd313 100644
--- a/dashboard/nodes/soop_tab.js
+++ b/dashboard/nodes/soop_tab.js
@@ -1,11 +1,17 @@
module.exports = function(RED) {
+ const dashboard = require("../dashboard")(RED);
function TabNode(config) {
+ const node = this;
RED.nodes.createNode(this, config);
this.config = {
name: config.name,
- includedGroups: config.includedGroups
+ includedGroups: config.includedGroups,
+ includedGroupsName: config.includedGroupsName
};
+ dashboard.addNode({
+ node: node,
+ });
}
RED.nodes.registerType("soop_tab", TabNode);