mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix element to collapse items in visual JSON editor
This commit is contained in:
parent
f75dd2209d
commit
a0026e66ce
@ -141,6 +141,7 @@
|
|||||||
})
|
})
|
||||||
}});
|
}});
|
||||||
options.push({id:"red-ui-editor-type-json-menu-collapse-children",icon:"fa fa-angle-double-up", label:RED._('jsonEditor.collapseItems'),onselect:function(){
|
options.push({id:"red-ui-editor-type-json-menu-collapse-children",icon:"fa fa-angle-double-up", label:RED._('jsonEditor.collapseItems'),onselect:function(){
|
||||||
|
item.treeList.collapse();
|
||||||
item.children.forEach(function(child) {
|
item.children.forEach(function(child) {
|
||||||
child.treeList.collapse();
|
child.treeList.collapse();
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user