diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/library.js b/packages/node_modules/@node-red/editor-client/src/js/ui/library.js old mode 100644 new mode 100755 index d8d35b564..86fefc6f5 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/library.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/library.js @@ -44,7 +44,7 @@ RED.library = (function() { li.className = "dropdown-submenu pull-left"; a = document.createElement("a"); a.href="#"; - var label = i.replace(/^@.*\//,"").replace(/^node-red-contrib-/,"").replace(/^node-red-node-/,"").replace(/-/," ").replace(/_/," "); + var label = i.replace(/^@.*\//,"").replace(/^node-red-contrib-/,"").replace(/^node-red-node-/,"").replace(/-/g," ").replace(/_/g," "); a.innerText = label; li.appendChild(a); li.appendChild(buildMenu(data.d[i],root+(root!==""?"/":"")+i)); diff --git a/packages/node_modules/@node-red/editor-client/src/sass/tabs.scss b/packages/node_modules/@node-red/editor-client/src/sass/tabs.scss index 7c5ba0ab0..489cce5f8 100644 --- a/packages/node_modules/@node-red/editor-client/src/sass/tabs.scss +++ b/packages/node_modules/@node-red/editor-client/src/sass/tabs.scss @@ -111,6 +111,7 @@ font-weight: bold; .red-ui-tabs-badge-selected { display: inline; + background: white; } .red-ui-tabs-badge-changed { display: none; diff --git a/packages/node_modules/@node-red/registry/lib/loader.js b/packages/node_modules/@node-red/registry/lib/loader.js index ebc814b61..09589c80a 100644 --- a/packages/node_modules/@node-red/registry/lib/loader.js +++ b/packages/node_modules/@node-red/registry/lib/loader.js @@ -34,14 +34,14 @@ function init(_runtime) { registryUtil.init(runtime); } -function load(defaultNodesDir,disableNodePathScan) { +function load(disableNodePathScan) { // To skip node scan, the following line will use the stored node list. // We should expose that as an option at some point, although the // performance gains are minimal. //return loadNodeFiles(registry.getModuleList()); runtime.log.info(runtime.log._("server.loading")); - var nodeFiles = localfilesystem.getNodeFiles(defaultNodesDir,disableNodePathScan); + var nodeFiles = localfilesystem.getNodeFiles(disableNodePathScan); return loadNodeFiles(nodeFiles); } diff --git a/test/unit/@node-red/registry/lib/loader_spec.js b/test/unit/@node-red/registry/lib/loader_spec.js index 3eb83dfd8..9ab2e0081 100644 --- a/test/unit/@node-red/registry/lib/loader_spec.js +++ b/test/unit/@node-red/registry/lib/loader_spec.js @@ -50,10 +50,9 @@ describe("red/nodes/registry/loader",function() { stubs.push(sinon.stub(localfilesystem,"getNodeFiles", function(){ return {};})); stubs.push(sinon.stub(registry,"saveNodeList", function(){ return {};})); loader.init({nodes:nodes,log:{info:function(){},_:function(){}},settings:{available:function(){return false;}}}); - loader.load("foo",true).then(function() { + loader.load(true).then(function() { localfilesystem.getNodeFiles.called.should.be.true(); - localfilesystem.getNodeFiles.lastCall.args[0].should.eql('foo'); - localfilesystem.getNodeFiles.lastCall.args[1].should.be.true(); + localfilesystem.getNodeFiles.lastCall.args[0].should.be.true(); registry.saveNodeList.called.should.be.false(); done(); }) @@ -62,7 +61,7 @@ describe("red/nodes/registry/loader",function() { stubs.push(sinon.stub(localfilesystem,"getNodeFiles", function(){ return {};})); stubs.push(sinon.stub(registry,"saveNodeList", function(){ return {};})); loader.init({nodes:nodes,log:{info:function(){},_:function(){}},settings:{available:function(){return true;}}}); - loader.load("foo",true).then(function() { + loader.load(true).then(function() { registry.saveNodeList.called.should.be.true(); done(); }).catch(function(err) {