mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #2075 from kazuhitoyokoi/dev-fixlibrarybug
Fix module name bug in import menu
This commit is contained in:
commit
d8e4020cec
2
packages/node_modules/@node-red/editor-client/src/js/ui/library.js
vendored
Normal file → Executable file
2
packages/node_modules/@node-red/editor-client/src/js/ui/library.js
vendored
Normal file → Executable file
@ -44,7 +44,7 @@ RED.library = (function() {
|
|||||||
li.className = "dropdown-submenu pull-left";
|
li.className = "dropdown-submenu pull-left";
|
||||||
a = document.createElement("a");
|
a = document.createElement("a");
|
||||||
a.href="#";
|
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;
|
a.innerText = label;
|
||||||
li.appendChild(a);
|
li.appendChild(a);
|
||||||
li.appendChild(buildMenu(data.d[i],root+(root!==""?"/":"")+i));
|
li.appendChild(buildMenu(data.d[i],root+(root!==""?"/":"")+i));
|
||||||
|
Loading…
Reference in New Issue
Block a user