From 3e445ae4ddbc0b64afb37a4cdaec61ccbac98196 Mon Sep 17 00:00:00 2001 From: Paul Kaplan <pkaplan@media.mit.edu> Date: Mon, 4 Dec 2017 15:21:38 -0500 Subject: [PATCH] Make procedure declaration undeletable --- src/containers/custom-procedures.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/containers/custom-procedures.jsx b/src/containers/custom-procedures.jsx index 11ee4d357..8fcf8cb93 100644 --- a/src/containers/custom-procedures.jsx +++ b/src/containers/custom-procedures.jsx @@ -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(() => { -- GitLab