diff --git a/node-red-node-ui-mylittleuinode/mylittleuinode.html b/node-red-node-ui-mylittleuinode/mylittleuinode.html
index 4a08013..71194e2 100644
--- a/node-red-node-ui-mylittleuinode/mylittleuinode.html
+++ b/node-red-node-ui-mylittleuinode/mylittleuinode.html
@@ -197,6 +197,9 @@
label: function() {
return this.name||"my little UI node";
},
+ labelStyle: function() {
+ return this.name?"node_label_italic":"";
+ },
//*********************************************************************************
//*********************************************************************************
// !!REQUIRED!!
@@ -241,11 +244,11 @@
-
diff --git a/node-red-node-ui-mylittleuinode/mylittleuinode.js b/node-red-node-ui-mylittleuinode/mylittleuinode.js
index 9a3e089..d304508 100644
--- a/node-red-node-ui-mylittleuinode/mylittleuinode.js
+++ b/node-red-node-ui-mylittleuinode/mylittleuinode.js
@@ -1,3 +1,4 @@
+/* eslint-disable indent */
/**
* Copyright 2018 Seth350
*
@@ -60,7 +61,7 @@ module.exports = function(RED) {
`;
return html;
- };
+ }
/********************************************************************
* REQUIRED
@@ -90,7 +91,7 @@ module.exports = function(RED) {
var ui = undefined;
-/******************************************************************** */
+/*********************************************************************/
/*********************************************************************
@@ -182,7 +183,7 @@ module.exports = function(RED) {
* the Node-RED flow.
*/
initController: function($scope, events) {
- debugger;
+ //debugger;
$scope.flag = true; // not sure if this is needed?
@@ -246,7 +247,6 @@ module.exports = function(RED) {
};
/*******************************************************************/
-
}
});
}
@@ -258,8 +258,7 @@ module.exports = function(RED) {
/*******************************************************************
* !!REQUIRED!!
-* TODO: Get with team on purpose of this node.
-* There is no need to edit these lines.
+* If you need to do any handling before closing do it here then call done().
*/
node.on("close", function() {
if (done) {
@@ -277,5 +276,7 @@ module.exports = function(RED) {
* of the function (see line #87) that will return your nodes's configuration.
* Note: the name must begin with "ui_".
*/
- RED.nodes.registerType("ui_my-little-ui-node", MyLittleUiNode);
+ setImmediate(function() {
+ RED.nodes.registerType("ui_my-little-ui-node", MyLittleUiNode);
+ })
}
diff --git a/node-red-node-ui-mylittleuinode/package.json b/node-red-node-ui-mylittleuinode/package.json
index e3bcd60..6aca0da 100644
--- a/node-red-node-ui-mylittleuinode/package.json
+++ b/node-red-node-ui-mylittleuinode/package.json
@@ -1,6 +1,6 @@
{
"name": "node-red-node-ui-mylittleuinode",
- "version": "0.0.2",
+ "version": "0.0.3",
"description": "A Node-RED dashboard ui node to help you create your own ui node.",
"peerDependencies": {
"node-red-dashboard": ">2.15.0"