mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Disable subflow toolbar when multiple tabs are selected
This commit is contained in:
parent
ffa6dea452
commit
6a4e7201fe
@ -292,13 +292,14 @@ RED.workspaces = (function() {
|
|||||||
onselect: function(selectedTabs) {
|
onselect: function(selectedTabs) {
|
||||||
RED.view.select(false)
|
RED.view.select(false)
|
||||||
if (selectedTabs.length === 0) {
|
if (selectedTabs.length === 0) {
|
||||||
// TODO: workspace-toolbar
|
|
||||||
$("#chart svg").css({"pointer-events":"auto",filter:"none"})
|
$("#chart svg").css({"pointer-events":"auto",filter:"none"})
|
||||||
|
$("#workspace-toolbar").css({"pointer-events":"auto",filter:"none"})
|
||||||
$("#palette-container").css({"pointer-events":"auto",filter:"none"})
|
$("#palette-container").css({"pointer-events":"auto",filter:"none"})
|
||||||
$(".sidebar-shade").hide();
|
$(".sidebar-shade").hide();
|
||||||
} else {
|
} else {
|
||||||
RED.view.select(false)
|
RED.view.select(false)
|
||||||
$("#chart svg").css({"pointer-events":"none",filter:"opacity(60%)"})
|
$("#chart svg").css({"pointer-events":"none",filter:"opacity(60%)"})
|
||||||
|
$("#workspace-toolbar").css({"pointer-events":"none",filter:"opacity(60%)"})
|
||||||
$("#palette-container").css({"pointer-events":"none",filter:"opacity(60%)"})
|
$("#palette-container").css({"pointer-events":"none",filter:"opacity(60%)"})
|
||||||
$(".sidebar-shade").show();
|
$(".sidebar-shade").show();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user