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

Remove context menu from declaration block

parent 01615e8c
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,10 @@ class CustomProcedures extends React.Component { ...@@ -39,7 +39,10 @@ class CustomProcedures extends React.Component {
// Create the procedure declaration block for editing the mutation. // Create the procedure declaration block for editing the mutation.
this.mutationRoot = this.workspace.newBlock('procedures_declaration'); this.mutationRoot = this.workspace.newBlock('procedures_declaration');
// Make the declaration fixed and have no context menu
this.mutationRoot.setMovable(false); this.mutationRoot.setMovable(false);
this.mutationRoot.contextMenu = false;
this.workspace.addChangeListener(() => { this.workspace.addChangeListener(() => {
this.mutationRoot.onChangeFn(); this.mutationRoot.onChangeFn();
// Keep the block centered on the workspace // Keep the block centered on the workspace
......
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