File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -776,16 +776,17 @@ RED.editor = (function() {
776776 } else {
777777 ns = node_def . set . id ;
778778 }
779- var activeWorkspace = RED . nodes . workspace ( RED . workspaces . active ( ) ) ;
780- if ( ! activeWorkspace ) {
781- activeWorkspace = RED . nodes . subflow ( RED . workspaces . active ( ) ) ;
779+ var configNodeScope = "" ; // default to global
780+ var activeSubflow = RED . nodes . subflow ( RED . workspaces . active ( ) ) ;
781+ if ( activeSubflow ) {
782+ configNodeScope = activeSubflow . id ;
782783 }
783784 if ( editing_config_node == null ) {
784785 editing_config_node = {
785786 id : RED . nodes . id ( ) ,
786787 _def : node_def ,
787788 type : type ,
788- z : activeWorkspace . id ,
789+ z : configNodeScope ,
789790 users : [ ]
790791 }
791792 for ( var d in node_def . defaults ) {
Original file line number Diff line number Diff line change 255255 margin : 1px 0 0 0 ;
256256 padding : 0 ;
257257 height : 22px ;
258- width : 150 px ;
258+ width : 200 px ;
259259
260260}
261261#node-config-dialog-user-count {
Original file line number Diff line number Diff line change 267267 "config" : {
268268 "name" : " Configuration nodes" ,
269269 "label" : " config" ,
270- "global" : " Global " ,
270+ "global" : " On all flows " ,
271271 "none" : " none" ,
272272 "subflows" : " subflows" ,
273273 "flows" : " flows" ,
You can’t perform that action at this time.
0 commit comments