Skip to content
Snippets Groups Projects
Commit 3e445ae4 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Make procedure declaration undeletable

parent 233f5a01
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,9 @@ class CustomProcedures extends React.Component {
// Create the procedure declaration block for editing the mutation.
this.mutationRoot = this.workspace.newBlock('procedures_declaration');
// Make the declaration fixed and have no context menu
// Make the declaration immovable, undeletable and have no context menu
this.mutationRoot.setMovable(false);
this.mutationRoot.setDeletable(false);
this.mutationRoot.contextMenu = false;
this.workspace.addChangeListener(() => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment