@gregoriusrippenstein/node-red-contrib-nodedev 0.6.0 → 0.6.1

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.
@@ -158,12 +158,12 @@
158
158
 
159
159
  // anything that requires the config node goes here.
160
160
  let fillInSidebarForm = () => {
161
- RED.events.off('runtime-state', fillInSidebarForm )
161
+ RED.events.off('flows:loaded', fillInSidebarForm )
162
162
 
163
163
  // At startup load your config node data into the plugin sidebar html elements
164
164
  $("#node-input-data").val(globalYourConfigNode.data);
165
165
  }
166
- RED.events.on('runtime-state', fillInSidebarForm )
166
+ RED.events.on('flows:loaded', fillInSidebarForm )
167
167
  };
168
168
 
169
169
  RED.plugins.registerPlugin("{{ node.name }}-sidebar-plugin", { onadd: registerPluginOnAdd });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name" : "@gregoriusrippenstein/node-red-contrib-nodedev",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "dependencies": {
5
5
  "pako": "^2.1.0",
6
6
  "tar-stream": "^3.1.6",
@@ -326,7 +326,7 @@
326
326
  })
327
327
 
328
328
  let fillInSiderBarForm = () => {
329
- RED.events.off('runtime-state', fillInSiderBarForm);
329
+ RED.events.off('flows:loaded', fillInSiderBarForm);
330
330
  ensureYourConfigNodeExists();
331
331
 
332
332
  $("#node-input-nodefactorysidebar-package-registry").val(globalYourConfigNode.pkgregistry);
@@ -344,7 +344,7 @@
344
344
 
345
345
  $("#node-input-nodefactorysidebar-package-version").val(globalYourConfigNode.pkgversion);
346
346
  }
347
- RED.events.on('runtime-state', fillInSiderBarForm);
347
+ RED.events.on('flows:loaded', fillInSiderBarForm);
348
348
  };
349
349
 
350
350
  RED.plugins.registerPlugin("nodedev-sidebar-plugin", { onadd: initialiseSideBarForm });