diff --git a/editor/js/history.js b/editor/js/history.js index 43aabc0f1..09ff67dd0 100644 --- a/editor/js/history.js +++ b/editor/js/history.js @@ -234,10 +234,6 @@ RED.history = (function() { n.outputs = ev.node.out.length; RED.editor.updateNodeProperties(n); }); - - if (ev.node.type === 'subflow') { - $("#menu-item-workspace-menu-"+ev.node.id.replace(".","-")).text(RED.text.bidi.enforceTextDirectionWithUCC(ev.node.name)); - } } else { RED.editor.updateNodeProperties(ev.node); RED.editor.validateNode(ev.node); diff --git a/editor/js/main.js b/editor/js/main.js index 5de64255b..58f6172bc 100644 --- a/editor/js/main.js +++ b/editor/js/main.js @@ -203,8 +203,7 @@ var RED = (function() { menuOptions.push({id:"menu-item-workspace",label:RED._("menu.label.flows"),options:[ {id:"menu-item-workspace-add",label:RED._("menu.label.add"),onselect:RED.workspaces.add}, {id:"menu-item-workspace-edit",label:RED._("menu.label.rename"),onselect:RED.workspaces.edit}, - {id:"menu-item-workspace-delete",label:RED._("menu.label.delete"),onselect:RED.workspaces.remove}, - null + {id:"menu-item-workspace-delete",label:RED._("menu.label.delete"),onselect:RED.workspaces.remove} ]}); menuOptions.push({id:"menu-item-subflow",label:RED._("menu.label.subflows"), options: [ {id:"menu-item-subflow-create",label:RED._("menu.label.createSubflow"),onselect:RED.subflow.createSubflow}, diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index 53e25bbe1..a055dc69d 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -1221,7 +1221,6 @@ RED.editor = (function() { changes['name'] = editing_node.name; editing_node.name = newName; changed = true; - $("#menu-item-workspace-menu-"+editing_node.id.replace(".","-")).text(RED.text.bidi.enforceTextDirectionWithUCC(newName)); } var newDescription = subflowEditor.getValue(); diff --git a/editor/js/ui/workspaces.js b/editor/js/ui/workspaces.js index 9817a5a11..e3947784c 100644 --- a/editor/js/ui/workspaces.js +++ b/editor/js/ui/workspaces.js @@ -97,7 +97,6 @@ RED.workspaces = (function() { workspace_tabs.renameTab(workspace.id,label); RED.nodes.dirty(true); RED.sidebar.config.refresh(); - $("#menu-item-workspace-menu-"+workspace.id.replace(".","-")).text(RED.text.bidi.enforceTextDirectionWithUCC(label)); } RED.tray.close(); } @@ -148,18 +147,10 @@ RED.workspaces = (function() { } }, onadd: function(tab) { - RED.menu.addItem("menu-item-workspace",{ - id:"menu-item-workspace-menu-"+tab.id.replace(".","-"), - label:tab.label, - onselect:function() { - workspace_tabs.activateTab(tab.id); - } - }); RED.menu.setDisabled("menu-item-workspace-delete",workspace_tabs.count() == 1); }, onremove: function(tab) { RED.menu.setDisabled("menu-item-workspace-delete",workspace_tabs.count() == 1); - RED.menu.removeItem("menu-item-workspace-menu-"+tab.id.replace(".","-")); }, onreorder: function(oldOrder, newOrder) { RED.history.push({t:'reorder',order:oldOrder,dirty:RED.nodes.dirty()}); @@ -235,7 +226,6 @@ RED.workspaces = (function() { refresh: function() { RED.nodes.eachWorkspace(function(ws) { workspace_tabs.renameTab(ws.id,ws.label); - $("#menu-item-workspace-menu-"+ws.id.replace(".","-")).text(RED.text.bidi.enforceTextDirectionWithUCC(ws.label)); }) RED.nodes.eachSubflow(function(sf) {