Closed spainala closed 2 years ago
Changes:
These menu ids are disabled when a diagram is locked:
const menu_ids = ["diagram_manage_contents", "diagram_add_downstream", "diagram_add_upstream",
"diagram_add_all_nodes", "nodes_align_vertical", "nodes_align_horizontal", "nodes_layout_vertical",
"nodes_layout_horizontal", "nodes_layout_isolated", "diagram_remove_selected", "diagram_remove_diagram"];
Top left locked:
Disabled menu items when locked:
Locked diagrams still accept drag-n-drop nodes, so reopening to disable drop target when locked.
Please introduce a method to lock nodes/connectors in a diagram. It is simple to select a node and mistakenly drag or move the diagram.
It would be really helpful to lock a diagram to prevent changes. If the diagram needs to be changed. Unlock the diagram. Make changes and then apply the lock to prevent further changes.